将如下四行代码复制到记事本中,改扩展名为.bat
,然后以管理员身份运行即可。
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"
参考大神:
win10家庭版没有组策略怎么办? - zxjathome的回答 - 知乎
https://www.zhihu.com/question/53834660/answer/158108562