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