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

Jan 13, 2024 am 09:27 AM

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What's New in Windows 11 KB5054979 & How to Fix Update Issues What's New in Windows 11 KB5054979 & How to Fix Update Issues Apr 03, 2025 pm 06:01 PM

Windows 11 KB5054979 Update: Installation Guide and Troubleshooting For Windows 11 24H2 version, Microsoft has released cumulative update KB5054979, which includes several improvements and bug fixes. This article will guide you on how to install this update and provide a solution to the installation failure. About Windows 11 24H2 KB5054979 KB5054979 was released on March 27, 2025 and is a security update for Windows 11 24H2 versions.NET Framework 3.5 and 4.8.1. This update enhances security and

How to fix KB5055523 fails to install in Windows 11? How to fix KB5055523 fails to install in Windows 11? Apr 10, 2025 pm 12:02 PM

KB5055523 update is a cumulative update for Windows 11 version 24H2, released by Microsoft on April 8, 2025, as part of the monthly Patch Tuesday cycle, to offe

How to fix KB5055518 fails to install in Windows 10? How to fix KB5055518 fails to install in Windows 10? Apr 10, 2025 pm 12:01 PM

Windows update failures are not uncommon, and most users have to struggle with them, most often becoming frustrated when systems fail to install critical patche

Proven Fixes and Tips for KB5054980 Not Installing Proven Fixes and Tips for KB5054980 Not Installing Mar 31, 2025 pm 02:40 PM

Troubleshooting KB5054980 Installation Issues on Windows 11 Microsoft released KB5054980 on March 25, 2025, for Windows 11 versions 22H2 and 23H2. While this update doesn't include new security features, it incorporates all previously released securi

Windows 10 KB5055063: What's New & How to Download It Windows 10 KB5055063: What's New & How to Download It Mar 31, 2025 pm 03:54 PM

Windows 10 KB5055063 update details and installation troubleshooting KB5055063 is an update for the .NET Framework for Windows 10 22H2 version, including important improvements and fixes. This article will explore KB5055063 in depth, including download methods and various ways to solve installation failure problems. Introduction to Windows 10 KB5055063 KB5055063 is a cumulative update for .NET Framework 3.5, 4.8, and 4.8.1 for Windows 10 version 22H2, on March 25, 2025

How to fix KB5055528 fails to install in Windows 11? How to fix KB5055528 fails to install in Windows 11? Apr 10, 2025 pm 12:00 PM

Windows updates are essential to keep your system up to date, secure, and efficient, adding security patches, bug fixes, and new functionality for Windows 11 us

How to fix KB5055612 fails to install in Windows 10? How to fix KB5055612 fails to install in Windows 10? Apr 15, 2025 pm 10:00 PM

Windows updates are a critical part of keeping the operating system stable, secure, and compatible with new software or hardware. They are issued on a regular b

Fix This Module Is Blocked from Loading into LSA Fix This Module Is Blocked from Loading into LSA Apr 02, 2025 pm 08:01 PM

After upgrading Windows 11 24H2, you encounter an error "This module prevents loading to local security agency (mdnsNSP.dll)"? This article provides several solutions. Local Security Agency (LSA) protection is a security feature of Windows that helps prevent credentials used to log in to Windows. Many users receive the following error message after a fresh installation of Windows 11 24H2 and installing the latest version of iTunes: This module prevents loading to the local security authority. \Device\HarddiskVolume3\Program Files\Bonjour\mdnsNSP.dll for

See all articles