This article provides methods for adding Hyper-V and gpedit.msc in Windows Home Edition.


Windows 11 Home Edition by default does not include Hyper-V or the Group Policy Editor (gpedit.msc), but it can be installed via commands to add hidden system components of the Group Policy to get the features.


Main Content

Method:
1、Create a batch script: Create a text file on the desktop, copy the following code into it, and save it as xx.bat
2、Run the script as an administrator: Right-click the saved xx.bat file and select “Run as administrator”. The command window will automatically install the components, then press any key to close it
Code:
I. Home Edition - Enable Hyper-V

@echo off
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

II. Home Edition - Add Group Policy.

@echo off
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >install_gpedit.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>install_gpedit.txt
for /f %%i in ('findstr /i . install_gpedit.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
pause