1、将以下代码复制粘贴到txt文件中
@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、将文件后缀的.txt修改为.bat,懒人可以直接点击下载->添加组策略.bat
3、右键文件以管理员身份运行
4、win+R打开运行,输入“gpedit.msc”,就能正常打开组策略啦~