Group policy editor (gpedit.msc) is a very useful windows function that is needed when enabling the windows long file path feature. It has been installed and enabled in win 10 professional and enterprise editions by default.
But when you run it in win 10 home edition, it will prompt an error message like Windows cannot find ‘gpedit.msc’. Make sure you’ve typed the name correctly, then try again., this is because win 10 home edition does not enable group policy editor by default, but the group policy editor installation file has already existed in the win 10 home edition, this article will tell you how to use the command dism to enable group policy editor in win 10 home edition.
1. Install Group Policy Editor In Win 10 Steps.
- Create a bat file (such as install_gpedit.bat ) in a windows folder.
- Then copy the below command in the above bat file and save it. Please note each line of code in the below script should be written in one line. Otherwise, the bat file can not be executed successfully.
@echo off pushd "%~dp0" echo List all Group Policy Editor client related win10 package files to Files.txt file. dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >Files.txt dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>Files.txt echo Run dism command to install Group Policy Editor... for /f %%i in ('findstr /i . Files.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i" echo. echo Group Policy Editor Installation complete. echo. pause
- Right-click the above bat file and click the Run as administrator menu item in the popup menu.
- Then the bat file will be executed and popup a dos window, you can find the below output message in the dos window.
List all Group Policy Editor client related win10 package files to Files.txt file. Run dism command to install Group Policy Editor... Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.17134.345 Processing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~en-GB~10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.17134.345 Processing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientExtensions-Package~31bf3856ad364e35~amd64~~10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.17134.345 Processing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~en-GB~10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.17134.345 Processing 1 of 1 - Adding package Microsoft-Windows-GroupPolicy-ClientTools-Package~31bf3856ad364e35~amd64~~10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Group Policy Editor Installation complete. Press any key to continue . . .
- After that, restart the computer if needed.
- After restarting the computer, right-click the windows start button at the bottom left corner, click the Run menu item to open the Run dialog.
- Input gpedit.msc in the Open text box then click the OK button.
- Now it will open the Local Group Policy Editor window.
Excellent solution and instructions! Thank you.