Last active
June 25, 2021 15:07
-
-
Save bryanjhv/dffb062710f035f451ee6ce2eba6334e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
pushd "%~dp0" | |
rem enable gpedit on windows home (tested windows 10) | |
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum > pkgs.txt | |
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >> pkgs.txt | |
for /f %%i in ('findstr /i . pkgs.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del pkgs.txt | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment