LucD
Leadership
Leadership

Does this list the correct device?
Note that it lists the boot device, not necessarily the ESX-OSData partition.

Get-VMHost |
ForEach-Object -Process {
    $esxcli = Get-EsxCli -VMHost $_ -V2
    $esxcli.storage.core.device.list.Invoke() |
        where{$_.IsBootDevice -eq 'true'} |
    Select @{N='VMHost';E={$esxcli.VMHost.Name}},IsUsb,Device,DisplayName
}


 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos