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:
- Login as the ‘Administrator’ account.
- Login with an account that is a member of the Administrators group and launch the command prompt ‘As Administrator’.
- Add your specific user account to the Administrators role under Authorization Manager (details here).