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

Re: Get List of VMs, Datastores and Folder name per Cluster

$
0
0

No problem, try this

 

Get-VM|
SelectName,
@{N="Datastore";E={[string]::Join(',',(Get-Datastore-Id$_.DatastoreIdList|Select-ExpandPropertyName))}},
@{N="UsedSpaceGB";E={[math]::Round($_.UsedSpaceGB,1)}},
@{N="ProvisionedSpaceGB";E={[math]::Round($_.ProvisionedSpaceGB,1)}},
@{N="Folder";E={$_.Folder.Name}} |
Export-CsvC:\report.csv-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 230412

Trending Articles



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