PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster
Set default path selection policies
author: Yuri de Jager
Description
Yuri uses powerCLI to query and change the current Path Selection Policy (PSP) on his new cluster, after that he updates his default PSP settings so that his preference will be applied in the future as well.
Usage
Get-Cluster [ClusterName] | Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -ne “RoundRobin”} | Set-ScsiLun -MultipathPolicy “RoundRobin”
See his post for the full details.