I am receiving the error "Unable to add user to the Hyper-V Administrators group. Exit code 2220" while attempting to deploy to an MS Android emulator. I am able to deploy windows mobile emulators as well as Linux VMs in Hyper-V.
- Windows 10 Pro
- Visual Studio 2015 Professional Update 1
- MS VS Emulator for Android 1.0.60106.1
- Xamarin 4.0.0.1717
I do not have a Hyper-V Administrators group. Numerous questions and blogs have suggested that I uninstall Hyper-V and reinstall. I tried this, it didn't create the Hyper-V Administrators group.
I've read several articles from Ben Armstrong (aka twitter @virtualpcguy) a Hyper-V Program Manager on how to manually create/add users to the group, as well as some powershell scripts to automate this. Unfortunately these are based on Server 2008 R2, Windows 7, and Windows 8. In my reading it looks like windows 10 does not use InitialStore.xml
- Allowing non-Administrators to control Hyper-V
- Allowing non-Administrators to control Hyper-V–Updated
- Creating a “Hyper-V Administrators” local group through PowerShell
- Setting up non-administrative control of Hyper-V through PowerShell
Although I can manually add a group, Hyper-V Administrators, using lusrmgr.msc and add myself as a user I don't know how to apply the permissions for Hyper-V.
Note: This Windows 10 was installed with a non pro version, then upgraded to Pro. Might this be a factor in the missing Hyper-V Supervisors group?