Skip to content

Instantly share code, notes, and snippets.

@binjoo
Created September 8, 2017 03:32
Show Gist options
  • Save binjoo/9717e51eb12ef8cf6a4c29712a6109fe to your computer and use it in GitHub Desktop.
Save binjoo/9717e51eb12ef8cf6a4c29712a6109fe to your computer and use it in GitHub Desktop.
WIN10家庭版启用组策略
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment