PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster

From VI-Toolkit
Jump to navigation Jump to search

Set default path selection policies

author: Yuri de Jager


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.


Get-Cluster [ClusterName] | Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -ne “RoundRobin”} | Set-ScsiLun -MultipathPolicy “RoundRobin”

See his post for the full details.