Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Browsing all 9071 articles
Browse latest View live

Set-NetworkAdapter with Opaque Networks

Hi, it's not possible to use Opaque Networks (here: NSX-T Logical Switches) as parameter for Set-NetworkAdapter -NetworkName;the Opaque Network Name is also not shown in Get-NetworkAdapter, but the...

View Article


Multiwriter Disk

Guys,I need help to add multiwriter disk shared between 2 oracle VM's in my environment (vSphere 6, U2) using powercli. They are so many posts on the internet on this but I am not able get success my...

View Article


How To List unique RDMs in vCenter ?

I am having issue listing RDMs from vCenter.  get-vm | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select ScsiCanonicalName When I execute the above command, I see different host has different...

View Article

Read Custom Field under c#

I'm looking for a solution how to read out a custom field of a virtual machine. I found VirtualMachine.setCustomAttribute(key,value), but I miss the corresponding getCustomAttribute(key,value) method.I...

View Article

not getting output from multiple VC in csv

When I run below code in PowerCli I am getting desired information for all VCs but when I schedule(run) same script through PowerShell it give the information only about last VC in the list instead of...

View Article


Disconnecting problem with restarting management agents via plink

Greetings,I'm having some powershell issues restarting esxi management agents via ssh. The script is connecting fine to the esxi host, and does restart the agents, but it never disconnects, so it can...

View Article

How can I export free space on a datastore and used space on a datastore in...

How can I export free space on a datastore and used space on a datastore in my script below - PowerCLiThis line works to pull the datastore itself but I am not sure how to get the free space and used...

View Article

Get all Vlan for the host and network info

Hello,I need a script to get vlan information for each host with network information, I use this to get for each VM: &{foreach($vm in (Get-VM)) {    $vm.ExtensionData.Guest.Net | select -Property...

View Article


Error in deserializing body of reply message for operation 'ReadNextEvents'

I ran across a VIEvent problem I've seen others have and wanted to share what I found. I poll 32 vCenters for VM Migration events which are written to a database we use for troubleshooting application...

View Article


Scripted Connect-VIServer prompts for credentials when connecting to vCenter...

Hi I've created a simple script that connect to each of our vCenter Servers and obtains total number of VMs and Hosts and e-mails it to me once a month.  Untill recently we had only vCenter 6 for...

View Article

Schedule Snapshot with PowerCli

Hi All, I there any way to use PowerCli to schedule a snapshot? I'm looking to built a script to take user inputs such as Vm name, snapshot name, snapshot date, etc. to schedule a snapshot. I'm hoping...

View Article

How Do I Set the Guest OS Version for a VM?

How do I set a VM's Guest OS Fullname via powercli?  I'm able to create a windows vm, assign IP info, set CPU, RAM, Disk, etc.  But I cannot figure out how to assign it a correct Guest OS Version i.e....

View Article

Need help to get multipathing policy

Hello All,  I am using the below script to get path status, need help to add multipathing policy type and also I want to run it against specific ESxi cluster,Any help will be greatly appreciated,...

View Article


hi, issue with " invoke command into Linux virtual machine using powercli."

I want to invoke command into Linux virtual machine using powercli.Is there any way to do this using powercli.???? I tried with "Invoke-Vmscript", but it's working for windows machine.when i try for...

View Article

Image may be NSFW.
Clik here to view.

i am trying to do the datastore balance using powercli (Storage DRS in...

i am trying to do the datastore balance using powercli (Storage DRS in powercliscript), can you please someone help me on this, if it is already thre in infra

View Article


invoke-vmscript exitcode -3

Hi I am running a powershell script that invoke running of exe inside a VM. It work very strange. In some cases it work fine with exitcode 0 and in some cases I get exitcode -3.The exitcode -3 can...

View Article

How to Check iSCSI Connections from Powershell

Hi, How to check iscsi connected session from power shell How to Disconnect the iSCSI sessions from power shell OS windows 2008 R 2 Enterprise

View Article


Image may be NSFW.
Clik here to view.

vCenter 6.5 appliance api

Do we have an api to change this ?   

View Article

I am getting an error -"Connect-VIServer : Invalid URI: The hostname could...

I am getting an error -"Connect-VIServer : Invalid URI: The hostname could not be parsed." when i try to connect from Powershell script. however if i try the command from powecli promt it works. Can...

View Article

get-template -location $cluster doesn't work

Hi. I found out that $cluster = get-cluster "clustername" get-template -location $cluster doesn't work. The error message is:get-template : 16.04.2018 10:22:20      Get-Template            ClusterImpl...

View Article
Browsing all 9071 articles
Browse latest View live