Skip to content

Instantly share code, notes, and snippets.

@binarytrails
Last active December 16, 2025 18:43
Show Gist options
  • Select an option

  • Save binarytrails/97f4c1c0106bc773a891bc41a3dad673 to your computer and use it in GitHub Desktop.

Select an option

Save binarytrails/97f4c1c0106bc773a891bc41a3dad673 to your computer and use it in GitHub Desktop.
Run as Administrator; Run As (Win+R) > gpedit.msc
@echo off
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\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:"%SystemRoot%\servicing\Packages\%%i"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment