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

Re: Allocated space, used and free space for all VM's in a data center

$
0
0

The following PowerCLI script will report the spaces for all VM's in datacenter "New York" and write the output to a file called VMSpaces.csv:

 

Get-Datacenter -Name "New York"  | Get-VM |

Select-Object -Property Name,ProvisionedSpaceGB,UsedSpaceGB,@{N='FreeSpaceGB';E={$_.ProvisionedSpaceGB-$_.UsedSpaceGB}} |

Export-CSV -Path VMSpaces.csv -NoTypeInformation -UseCulture


Viewing all articles
Browse latest Browse all 210400

Trending Articles



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