Group policy editor is a tool, used on Windows that allows the system administrator to manage and change the settings of group policy. It contains more than 3000 Windows settings. However, users can use this on both local and network computers to configure access and limitations to particular websites, programs, or apps.
This tutorial will discuss:
Enable Group Policy Editor Using Command Prompt
To turn on the group policy editor using the command prompt, check out the below-listed steps:
- Press “Window+r” and open the run panel.
- Now, Insert the “gpedit.msc” in the text area and hit the “OK” button.
If encounter any error then follow the provided procedure:
- Open the start window then search “Command Prompt” and select “run as an administrator”.
- Run the commands in the command prompt, press any key from the keyboard to terminate it, and restart the computer.
- Press the “ Window + r” key from the keyboard and see the run panel, then specify the “gpedit.msc” and click on “OK”.
Step 1: Open Run Window
First, press the keyboard shortcut key “Window+R” to open the run panel:
Step 2: Search “gpedit.msc” Editor
Now, Insert the “gpedit.msc” where the cursor is blinking and hit on the “OK” button:
Step 3: Error Message
As you can see, the error message appears on the home screen and indicates that “gpedit.msc” is not found on the computer:
Step 4: Search for Command Prompt in Start Window
To solve the above-encountered error, search the “Command Prompt” with the help of the start menu and open it as a “Run as administrator”:
Step 5: Run Command
First, specify the below-given command in the terminal and then press enter:
Package~.mum") DO ( DISM /Online /NoRestart /Add-Package:"%F" )
Step 6: Run Next Command
After doing so, execute another command which is given below:
Step 7: Close Command Prompt Administrator Window
After completing the second command operation successfully press any key from the keyboard to terminate the command prompt administrator window and restart the computer:
Step 8: Open Run Panel to Launch Group Policy Editor
There are two different methods to launch the group policy editor:
First, press the “ Window + r” key and open the run panel, specify the “gpedit.msc” command in the text box. Lastly, click on “OK” button:
Another way to launch the group policy editor is to type “gpedit.msc” in the start search bar and then click on “open”:
Finally, the Local Group Policy Editor window appears on the screen:
Enable Group Policy Editor Using Dot Bat File
When the group policy editor is not installed on your computer and an error message is shown on the screen then follow the below-listed steps:
- Open the Notepad with the help of the start menu and add the batch code.
- Save the file as “group police editor.bat” with the “.bat” file extension.
- Right-click on the created file and open it as an administrator.
- Run the “command prompt” window, then “press any key” to continue the process and restart your system.
- Open the run panel, type “gpedit.msc” and click on “OK”.
Step 1: Launch Command Prompt
First, Open the “Start Window” icon, then click on the search bar and type “Notepad”. After that click on “open” as shown below screenshot:
Step 2: Insert Bat File Code
Now, copy the below-given batch code and add it into opened notepad file:
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
pause
Step 3: Save the Bat File
Go to the “File” in the menu bar at the top left corner of the screen and then click on the “Save as” option to save the file.
Step 4: Fill in the Requirement Before File Save
Save the file by following these steps:
- First, select the “Desktop” option in which location the file is saved.
- Then, set the type option as “All document”.
- In the file name text field, write the name of the file as you want, like “group police editor.bat” with the “.bat” file extension.
- Now, click on the “Save” button:
Step 5: Run the File as an Administrator
On the desktop, right-click on the “group policy edit.bat” file and select the “Run as administrator” option:
In the “user account control” prompt, just click on the “yes” option.
Step 6: Open Command Prompt
After doing so, the file will be run on the “command prompt”, when the operation is completed successfully than “press any key” to continue:
Once, the operation is successfully finished then must restart your computer, before opening the run panel.
Step 7: Launch Run Panel for Group Policy Editor
Press the shortcut key “ Window + R” to open the run panel, then type “gpedit.msc” in the text box and click on the “OK” button:
After doing so, a Local Group Policy Editor Window will appear on the screen where can easily manage and change the settings of group policy:
That’s it! We have provided the simplest ways for enabling group policy editor (gpedit.msc) in Windows 10 and 11 home editions.
Conclusion
Group policy editor is used to easily manage and change the settings of group policy as the user wants in Windows 10 & 11 home edition. To enable Group policy editor, there are two ways, such as using “Command Prompt” and by utilizing the “Dot Bat” file. This guide has illustrated the easiest way to enable the Group policy editor in Windows 10 and 11 home editions.