Category "powercli"

PowerCLI New-HardDisk fails when trying to add an existing hard disk

I am trying to add existing hard disks not used by any VM, but it fails. To simulate this event I've tried to remove the disks from VM then add them back. $VM =

PowerCLI - Finding Virtual Machine via VM IP

I am trying to locate specific VM's based from IP addresses in PowerCLI. I found this script online Grabbing VM ipaddress via PowerCLI The intial question exp

ConvertTo-Json on VMWare objects doesn't work

In powershell while converting VM objects to json , ($json = ConvertTo-Json $vm -Compress) i am getting "An item with the same key has already been added" exc