Group policy editor (gpedit.msc) is a very useful windows function that are needed when enable windows long file path feature. It has been installed and enabled in win 10 professional and enterprise edition by default.
But when you run it in win 10 home edition, it will prompt error message like Windows cannot find ‘gpedit.msc’, this is because win 10 home edition do not enable group policy editor by default, but the group policy editor installation file has already exist in win 10 home edition, this article will tell you how to use dism command 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 below command in above bat file and save. Please note each line of code in 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 above bat file and click Run as administrator menu item in the popup menu.
- Then the bat file will be executed and popup a dos window, you can find 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 restart computer, right click windows start button at bottom left corner, click Run menu item to open Run dialog.
- Input gpedit.msc in the input textbox then click OK button.
- Now it will open Local Group Policy Editor window.
Excellent solution and instructions! Thank you.