解决办法:
1.新建TXT文件,写入代码
@echo off pushd "%~dp0" dir /b C:WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b C:WindowsservicingPackagesMicrosoft-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:WindowsservicingPackages\%%i" pause
2.将文件后缀改为cmd
3.以管理员身份运行
4.已成功
5.验证,win+r输入gpedit.msc即可以打开本地组策略编辑器了