1. In the new desktop notepad
Copy the following content to which editor or Notepad
pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" del hyper-v.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
2. Modify the notepad name
forHyper-V.cmd
3. Open the right way to run as administrator
Immediately followed by Windows command processing, we wait for processing done after
Wait for the process to complete processing input Y
4. The computer automatically restart the restart
Appeared