Windows11开启组策略

    建立cmd文档粘贴以下内容,管理员权限运行

    @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

    转载请注明:RAIN MAN » Windows11开启组策略

    喜欢 0

还没有人抢沙发呢~