win11家庭版打开组策略

win11默认情况下,win+R执行"gpedit.msc"提示找不到。因此需要脚本打开:

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

保存为test.bat,然后以管理员身份运行即可。

你可能感兴趣的:(windows)