标签:off lin star cli use extension res lis rest
将下面的代码保存为 gpedit.cmd, 运行即可
@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
标签:off lin star cli use extension res lis rest
原文地址:https://www.cnblogs.com/tresser/p/9340835.html