Is there a way to map the datastore canonical name to friendly name? I can't seem to find a way to do this and can't find anything on the web to show me how either. Any ideas?
E4F
Hi E4F,
the next PowerCLI script will map the canonical name to the datastore name:
Get-View -Viewtype Datastore -Property Name,Info | Foreach-Object { $Datastore = $_ if ($Datastore.Info.GetType().Name -eq "VmfsDatastoreInfo") { $Datastore.Info.Vmfs.Extent | ` Select-Object -Property @{N="CanonicalName";E={$_.DiskName}},
@{N="Datastore";E={$Datastore.name}} } }
Regards, Robert
Hi E4F,
the next PowerCLI script will map the canonical name to the datastore name:
Get-View -Viewtype Datastore -Property Name,Info | Foreach-Object { $Datastore = $_ if ($Datastore.Info.GetType().Name -eq "VmfsDatastoreInfo") { $Datastore.Info.Vmfs.Extent | ` Select-Object -Property @{N="CanonicalName";E={$_.DiskName}},
@{N="Datastore";E={$Datastore.name}} } }
Regards, Robert
Thanks!
