创建文件test.cmd,然后把以下代码复制到此文件,然后用管理员身份运行就可以打开gpedit.msc
@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,Windows,List,servicing,win11,txt,msc From: https://www.cnblogs.com/yuanqiangfei/p/17818003.html