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

Re: Storage Report Help

$
0
0

No problem, try something like this

 

Get-Datastore|
Get-VM|
Select-Object@{N="Datastore";E={$_.ExtensionData.Config.Files.VmPathName.Split(']')[0].TrimStart('[')}},Name,VMHost,UsedSpaceGB|
Sort-Object-PropertyDatastore,Name|
Export-CSV"C:\report.csv"-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 228891

Trending Articles



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