VS Emulator for Android error with Hyper-V

☆樱花仙子☆ 提交于 2019-12-25 07:19:28

问题


When I try to run the Visual Studio emulator for Android I get the following error.

"Unable to add user to the Hyper-V Administrators group. Exit code 2220"

I am able to run the Windows Phone emulator without problem, so the administrators group is obviously present. Have tried to run as administrator with same result.

Running Visual Studio Enterprise 2015 on Windows 10 Anniversary update (14393.10).


回答1:


The problem may be related to the version of Windows you have or started with. You have to start with a Pro install. Upgrading from Home to Pro is incomplete.

I recently discovered if you start with the MSDN Windows 10 (Multiple Editions), Version 1607 and install it, it defaults to the Home edition. Once you put in the Pro Key to upgrade it, it becomes "Pro"; but not really. The "Users And Group" snap-in will not work, you are stuck with the security model in "Home". Once you have upgraded, you need to Reset the installation -- but do not delete/format the partition or you get a "Home" edition again.

The MSDN version does not allow you to select Home/Pro and there is no Pro version to download. Very frustrating. MS has known about this for almost a year.

Some have postulated it is because they removed a Default group definition file that included Hyper-V Administrators, but I created the group in "Home" using a Net command and it still does not work.



来源:https://stackoverflow.com/questions/38829485/vs-emulator-for-android-error-with-hyper-v

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!