VMWARE POWERCLI – SET PATH SELECTION POLICY ON ALL LUNS FOR A HOST

Written by Sam McGeown on 28/10/2011 · Read in about 1 min (62 words)
Published under Microsoft and 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