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

Re: Storage Report Help

$
0
0

If you are looking for the VMs on a specific datastore, you could do something like this.

Note the use of the Sort-Object cmdlet to get the VMs sorted by name.

 

$dsName="MyDatastore"

Get-VM-Datastore$dsName|

Select-Object@{N=Datastore;E={$dsName}},Name,VMHost,UsedSpaceGB|

Sort-Object-PropertyName|

Export-CSV"\\DIR\test.csv"-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 204490

Trending Articles



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