- 首先在桌面上創建一個txt文本文件,將下面的代碼複製到裏面
@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
- 而後保存,關閉,進行重命名修改後綴爲.cmd,而後右鍵點擊這個文件,如圖:以管理員身份運行就能夠了

- 等待一會,就能夠了,而後 Win + R,輸入gpedit.msc ,就能夠使用組策略gpedit.msc了
