WIN10 家庭版找回组策略编辑器
作者:互联网
@echo off
@echo "这个批处理文件将在Windows 10家庭版上启用组策略编辑器."
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\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:"%SystemRoot%\servicing\Packages\%%i"
pause
将以上代码另存为.bat 文件:
以管理员身份运行
win + r , 输入gpedit.msc 即可
标签:Packages,家庭版,组策略,List,Windows,servicing,SystemRoot%,WIN10,txt 来源: https://www.cnblogs.com/czzz/p/15858480.html