Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: Need a power-shell script to ..

$
0
0

Are you looking for something like this:

 

Get-Datacenter | Get-VM |%{$VMName = $_.Name; Get-VM $VMName | Get-Datastore} | Select-Object DataCenter, @{Expression={$VMName};Label="VMName";}, Name, FreeSpaceGB, CapacityGB

Viewing all articles
Browse latest Browse all 206069

Trending Articles



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