Advertisement
uraharadono

Installing Hyper-v in Windows 10 home

Apr 13th, 2020
5,369
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ------------------------------
  2. Steps
  3. ------------------------------
  4.  
  5. 1. Create new text file named "HYPER-V Package Installer" (or whatever) somwhere in your files.
  6. 2. Copy text below:
  7.  
  8. pushd "%~dp0"
  9.  
  10. dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
  11.  
  12. for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
  13.  
  14. del hyper-v.txt
  15.  
  16. Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
  17.  
  18. 3. Rename file extension from ".txt" to ".bat"
  19.  
  20. 4. Right click -> Run as administrator
  21.  
  22. ------------------------------
  23. Explanation
  24. ------------------------------
  25. 1.) Look for Hyper V Packages
  26. The Script looks into the Folder %SystemRoot%\servicing\Packages\ and search for the Hyper-V-Packages and writes them into a TextFile (hyper-v.txt)
  27. 2.) Add Hyper Packages
  28. For each line (Hyper-V-Package) its execute “dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\[Hyper-V-Package]”
  29. 3.) Delete hyper-v.txt
  30. 4.) Enable Hyper V Feature
  31. Execute Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement