Home  >  Article  >  Computer Tutorials  >  What to do if the gpedit.msc file cannot be found?

What to do if the gpedit.msc file cannot be found?

王林
王林forward
2024-02-07 12:15:121165browse

gpedit.msc is a command of the Windows Group Policy Editor. It is a mechanism defined by administrators for computers and users to control applications, system settings and administrative templates. Some friends find that they enter gpedit on their computers. After .msc, the file cannot be found and the program cannot be opened. The following editor will bring you the solution to the problem that the gpedit.msc file cannot be found. Friends who are troubled should come and take a look.

What to do if the gpedit.msc file cannot be found?

How to solve the problem that the gpedit.msc file cannot be found

1. First, press the shortcut key "win r" to open the run, and enter: notepad.

What to do if the gpedit.msc file cannot be found?

2. After that, you can enter the notepad and enter the code:

@echo off

pushd "%~dp0"

dir /b %systemroot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt

dir /b %systemroot%\servicing\ Packages\Microsoft-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%\servicing\Packages\%%i"

pause

3, then save it and name it " gpedit.bat".

What to do if the gpedit.msc file cannot be found?

4. Right-click on the saved gpedit.bat notepad and select "Run as administrator".

What to do if the gpedit.msc file cannot be found?

#5. After the processing is completed, press "win r" to open the run and enter the code: gpedit.msc.

What to do if the gpedit.msc file cannot be found?

The above is the detailed content of What to do if the gpedit.msc file cannot be found?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:53xt.com. If there is any infringement, please contact admin@php.cn delete