Win10 error: gpedit.msc (or secpol.msc) not found

Error:

        gpedit.msc (or secpol.msc) not found

reason:

        The Home version of Win10 does not have secpol.msc and gpedit.msc, and cannot change the relevant settings of the local policy.

solution:

1. Create a new text document and copy the following content

@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
 
pause

2. Save as: Group Policy.bat (Note: must be in .bat batch format)

3. Run the .bat file as an administrator

 After completion, Win+R input secpol.msc to open

Guess you like

Origin blog.csdn.net/qq_43554335/article/details/123604396