Created
June 13, 2023 12:06
-
-
Save theorium-0/1cd25fcd29b6dbd0ee91b3d1899b7e79 to your computer and use it in GitHub Desktop.
Fixes the error on some computers when trying to enable Hyper-V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Pause |
To fix the network interface interference while using Hyper-V, refer to: https://www.thewindowsclub.com/fix-error-applying-virtual-switch-properties-changes-in-hyper-v
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you still get an error post script, tinker around with the registry keys