Win10找不到文件【gpedit.msc】解决教程
2023-06-15 21:04:46
michael007js
248
1.桌面右键鼠标,新建文本文档
2.将以下代码复制到文档内保存
@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
3.将文件扩展名由【txt】改为【cmd】
4.右键以管理员身份运行
5.退出运行框即可