Rescan HBAs on multiple ESX hosts via Powershell

Got a lot of ESX hosts and hate having to rescan HBAs every time you add storage? Try this simple 1 liner in powershell.

Get-Cluster | get-vmhost | Get-VMHostStorage -RescanAllHBA

This command is courtasy of a post at http://communities.vmware.com/docs/DOC-7400.

Comments