Home > Article > Computer Tutorials > What to do if the gpedit.msc file cannot be located
gpedit.msc is the command we use to enter the local policy editor using a computer. Recently, some users have found that the file gpedit.msc cannot be found, so what should they do if the file gpedit.msc cannot be found? The editor below will give you some advice. Here is the solution for the file gpedit.msc not found. If you are interested, you can take a look.
Method 1:
1. Shortcut key "win R" to start running, enter "notepad", and press Enter to open.
2. After entering notepad, enter the code:
@echo off
pushd "%~dp0"
dir /b %systemroot%WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt
dir /b %systemroot%servicingPackagesMicrosoft -Windows-GroupPolicy-ClientTools-Package~3*.mum >>gp.txt
for /f %%i in ('findstr /i . gp.txt 2^>nul') do dism /online /norestart /add-package:"%systemroot%servicingPackages%%i"
pause
The above is the detailed content of What to do if the gpedit.msc file cannot be located. For more information, please follow other related articles on the PHP Chinese website!