@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格式的文件,管理员权限运行,运行完毕后就能使用 gpedit.msc 打开组策略了。
原文地址:https://www.cnblogs.com/3Tai/p/10482557.html
时间: 2024-11-05 14:59:30