Hyper-V Scripts and User Account Control

Last week I posted a bunch scripts for interacting with Hyper-V and a couple of you have contacted me about issues running these scripts on systems with User Account Control enabled.  By default 'Administrators' are only allowed to access the Hyper-V WMI interfaces.  In order to have WMI scripts run correctly you need to:

  1. Login as the 'Administrator' account.
  2. Login with an account that is a member of the Administrators group and launch the command prompt 'As Administrator'.
  3. Add your specific user account to the Administrators role under Authorization Manager (details here).

Cheers,
Ben