List all datastores and disk names

List all datastores and disk names

Get-Datastore |
Where-Object {$_.ExtensionData.Info.GetType().Name -eq "VmfsDatastoreInfo"} |
ForEach-Object {
  if ($_)
  {
    $Datastore = $_
    $Datastore.ExtensionData.Info.Vmfs.Extent |
    Select-Object -Property @{Name="Name";Expression={$Datastore.Name}},
      DiskName
  }
}

(more…)

Continue Reading List all datastores and disk names

How to check VMFS version & block sizes PowerCLI

How to check VMFS version & block sizes PowerCLI Get-Datastore | Get-View | Select-Object Name,@{N="VMFS version";E={$_.Info.Vmfs.Version}},@{N="BlocksizeMB";E={$_.Info.Vmfs.BlockSizeMB}}   NameVMFS version BlocksizeMB ---------------- ----------- TempDS 5.58 1 datastore1 5.54 1 datastore1 (3)…

Continue Reading How to check VMFS version & block sizes PowerCLI