Hello,
I'm trying to get a list of all datastores in my environment with their naa numbers which is pretty easy with this command:
Get-Datastore | select Name,State,@{N="naa";E={$_.ExtensionData.Info.Vmfs.Extent.DiskName}}
I would also like to add the datastorecluster name when the datastore resides in a datastorecluster. The challenge is that some of these reside in clusters, others do no, but I want to make sure I list all the datastores in my environment.
Any suggestions?