一、创建文件
桌面创建一个gpedit.txt文件内容如下,保存好后重命名为gpedit.bet
@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gpedit.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gpedit.txt
for /f %%i in ('findstr /i . gpedit.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause
二、运行gpedit.bet文件
鼠标放到gpedit.bet文件右键以管理员身份运行,如果卡住不动按一下鼠标右键,显示【请按任意键继续。。。】,运行完成,win + r 输入gpedit.msc即可