Get-Datacenter <Datacenter Name> | Get-Cluster “<Cluster name>”| Get-VMHost | Get-Datastore | select name , @{N=’CanonicalName’;E={$_.ExtensionData.Info.Vmfs.Extent[0].DiskName}}, FreeSpaceMB, CapacityMB | Export-Csv C:\Users\anupampushkar\Desktop\EAP-SQL-RDM.csv
Category Archives: Uncategorized
PS: VM name + Datastore name + NAA ID
Import-Csv <Path>| foreach { Get-VM $_.VMmachine | Select Name,@{N=”Datastore”;E={Get-Datastore -VM $_}} ,@{N=”DatastoreNAA”;E={ Get-Datastore -VM $_ | select @{N=’CanonicalName’;E={$_.ExtensionData.Info.Vmfs.Extent[0].DiskName}} }} } | export-csv <Path>
vExpert 2016 Award Announcement
Congratulation to Everyone. ! http://blogs.vmware.com/vmtn/vexpert