Hi,
I am trying to eject the media of all vm's in an org but I am having trouble. Is there an easy way to do this?
As an example with just one vm.
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> $vms
Name Status GuestOSFullName CpuCount MemoryGB
---- ------ --------------- -------- --------
vcenter PoweredOn Microsoft Windows Server 2008 R2 (64-... 2 4.000
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> $vms.ExtensionData.EjectMedia()
Cannot find an overload for "EjectMedia" and the argument count: "0".
At line:1 char:30
+ $vms.ExtensionData.EjectMedia <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
I am not great at all with powercli so forgive me if this is an easy one
Thanks!