Home > Computer Tutorials > Troubleshooting > What to do if the gpedit.msc file cannot be located

What to do if the gpedit.msc file cannot be located

王林
Release: 2024-01-13 09:27:24
forward
911 people have browsed it

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.

What to do if the gpedit.msc file cannot be located


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


##3. Then click "File" in the upper left corner ", select "Save as" in the options list, and name it "gpedit.bat".

What to do if the gpedit.msc file cannot be located


4. Select the "gpedit.bat" you just saved, right-click and select "Run as administrator" from the menu options .

What to do if the gpedit.msc file cannot be located


5. Finally, press "win R" to open the run and enter "gpedit.msc".

What to do if the gpedit.msc file cannot be located


Method 2:

1. Press the "win R" shortcut key, enter "control", and click OK to open.

What to do if the gpedit.msc file cannot be located


2. After entering the control panel, click the "System and Security" option.

What to do if the gpedit.msc file cannot be located


3. Then click the "System" option.

What to do if the gpedit.msc file cannot be located


4. After entering the new interface, click "Advanced System Settings" on the right.

What to do if the gpedit.msc file cannot be located


5. In the window that opens, switch to the "Advanced" tab above.

What to do if the gpedit.msc file cannot be located


6. Click the "Environment Variables" button below.

What to do if the gpedit.msc file cannot be located


7. Then double-click "path" in "System Variables" and change its variable to "%SystemRoot%system32;% SystemRoot%;%SystemRoot%system32WBEM", click OK to save to solve the problem.

What to do if the gpedit.msc file cannot be located


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!

source:dafanshu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template