其他分享
首页 > 其他分享> > win10 打开组策略脚本

win10 打开组策略脚本

作者:互联网

@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

 

保存成 zcl.cmd    ,用管理员运行

 

标签:脚本,mum,%%,组策略,List,Windows,servicing,win10,Packages
来源: https://www.cnblogs.com/tellerfuliye/p/13584563.html