解决办法:
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.将文件后缀改为cmd
3.以管理员身份运行
4.已成功 :此cmd运行需要点时间,请静候
5.验证,win+r输入gpedit.msc即可以打开本地组策略编辑器了
参考博客:https://www.cnblogs.com/zhangyouwu/p/12365502.html