List.txt dir /b C:WindowsservicingPackagesMicrosoft-Windo…"/>

Windows10家庭版中开启组策略代码

avatar 2089485250 2025-03-16 18:16 7次浏览 0 条评论 线报
@echo off

pushd "%~dp0"

dir /b C:WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt

dir /b C:WindowsservicingPackagesMicrosoft-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:WindowsservicingPackages%%i"

pause‍

另存为CMD,文件保存格式选择ANSI,否则会出现乱码!

发表评论

关注公众号