win 10 家庭版默认没有安装组策略,将一下代码保存成bat 文件,然后执行,完成后就可以调用gpedit.msc了。

@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