VMware PowerCLI – Set Path Selection Policy on all LUNs for a host

Written by <a class="" href="/category/sam-mcgeown">Sam McGeown</a>
Published on 28/10/2011 - Read in about 1 min (62 words)
Published under <a class="" href="/category/microsoft">Microsoft</a> and <a class="" href="/category/vmware">VMware</a> #maintenance mode #multipathing #PowerCLI #PowerShell #psp #round robin #VMWare

Just a quick script to set the Path Selection Policy on any LUNs on a host that do not have your target policy enabled. The script sets the server to Maintenance mode first, evacuating any VMs if you are in a full DRS automated environment. While this is not strictly necessary, it was required for my production environment just to be safe.

Share this post