存为1.bat,然后执行就可以了
转:https :// www .cnblogs.com/zhangyouwu/p/12365502.html
https :// wxx.olzl.net/21a03m48
-
@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
阅读(178) | 评论(0) | 转发(0) |