windows找不到文件“gpedit.msc”
作者:互联网
首先,打开cmd,输入notepad gpedit.msc
输入
@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
保存。
右键管理员打开
ok,完工~
标签:Packages,gp,windows,gpedit,Windows,servicing,systemroot%,txt,msc 来源: https://blog.csdn.net/qq_42240485/article/details/100186061