Genz
Rajesh Radhakrishnan
05/02/2018 Published 3 weeks ago
Share
https://vmarena.com/wp-content/uploads/2024/11/gradient-website-hosting-illustration_23-2149246882-1.jpg

Power CLI Command to List Connected Disks to ESXi Hosts

Get connected disk details including name , Multipathing , LunType  of all ESXI HOSTS in vCenter

Get-VMHost | Get-ScsiLun -LunType disk

User below command to export all the details to CSV

Get-VMHost | Get-ScsiLun -LunType disk |export-csv C:\diskinfo.csv

Get connected disk details including name , Multipathing , LunType  for Specific ESXI HOST

Get-VMHost  “ESXI-TEST.LOCAL.COM” | Get-ScsiLun -LunType disk