Personal test is effective. When the computer runs "gpedit.msc" (Group Policy), it prompts that the file cannot be found.

The Win10 Home version itself does not provide the Group Policy Editor function. The fact that it is not provided does not mean that this function is not available, but that this function is restricted. For details, you can continue to refer to the opening method below.

1. First, press the WIN + R keys on the keyboard at the same time to open the run dialog box, and enter notepad to open Notepad.

2. Then save the following batch processing content in Notepad.

@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

Description: Use the dir command to traverse the servicing directory of the system disk, look for the group policy configuration package, write it to the gp.txt file after finding it, and then use the dism command to install the group policy package.

Insert image description here

3. Next, click "File" in the upper right corner - "Save As".

4. In the pop-up interface, select the save path and file name (here named gpedit.bat). Note that the file type is "all files". Only in this way can you ensure that gpedit.bat is a batch file. Encoding selects ANSI. You must choose this way, otherwise errors will occur later.
Insert image description here

5. Then right-click on the saved gpedit.bat and select "Run as administrator". As mentioned above in the batch code introduction, the dism command requires administrator rights, so the batch must be run as an administrator.
Insert image description here

6. Finally, wait for the batch processing to complete.
Insert image description here

7. At this time, press the WIN + R keys at the same time to open the run input gpedit.msc, and press the Enter key or the OK button to open the group policy.

8. Take a look at the effect. It can be used normally.
Insert image description here

Guess you like

Origin blog.csdn.net/m0_50736744/article/details/120233957#comments_28795198