- 新建一个txt文件
- 输入
Code |
@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 |
- 更改后缀为.bat后以管理员权限运行
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/288827.html