Tips · Windows
If you try to run gpedit.msc (Local Group Policy Editor) and get the error “Windows cannot find gpedit.msc”, it’s because your PC is running Windows Home edition.
This feature is officially only available in Pro and above — but the necessary files are actually hidden inside Windows Home. This post shows you how to unlock them using a simple batch script (.bat).
1. Copy the Installation Script
Select and copy all of the code in the black box below (Ctrl+C). This is a safe script that uses Windows’ built-in dism command to install the hidden Group Policy packages already on your system.
@echo off
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
2. Save It as a Batch File (.bat)
- Right-click on your desktop → [New] → [Text Document] to open Notepad.
- Paste the copied code into the blank Notepad (Ctrl+V).
- Click [File] → [Save As] in the top menu.
The file name can be anything, but it must end in .bat (e.g. gpedit-install.bat).
Also change the “Save as type” dropdown from “Text Documents (*.txt)” to All Files (*.*) before saving. If a gear-shaped executable file appears on your desktop, you’re good to go!
3. Run as Administrator
Do not double-click the file. Instead, right-click it → [Run as administrator].
A black CMD window will appear and begin installing the packages one by one. This may take 1–5 minutes depending on your PC’s speed.
4. Confirm Installation and Test
When you see “Press any key to continue…” at the bottom of the CMD window, the installation is complete. Close the window.
Now press Win + R and type gpedit.msc. The Local Group Policy Editor should open without any errors — even on Windows Home! 🎉
super ! après plusieurs recherches c’est la bonne explication