Quantcast
Viewing all articles
Browse latest Browse all 230302

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

If you remove the Get-Datacenter command then you will get a report of all of your VM's. To use file C:\temp\reports\vm_ds.csv, you can replace VMspaces.csv with C:\temp\reports\vm_ds.csv:

 

Get-VM |

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

Export-CSV -Path C:\temp\reports\vm_ds.csv -NoTypeInformation -UseCulture


Viewing all articles
Browse latest Browse all 230302

Trending Articles