Comment

Excellent script.

Note: to run it from a w2008R2 server you need to open the powercli cmd window to "run as administrator" - even if you are logged in with an admin account.