Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Any way to eject all media?

$
0
0

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!


Viewing all articles
Browse latest Browse all 13334

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>