新建一个bat文件,然后编辑输入
@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
在该文件上右键,以管理员身份运行
然后在数据gpedit.msc命令运行就可以了
转载 https://blog.csdn.net/u013642500/article/details/80138799