Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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
Advertisement
Comments
-
- Has anyone checked if this code has any malware?
- I know it doesn't, but just to be sure.
-
- Lines 4 and 5 basically do the same thing - search C:\Windows for the Windows Update Package files and add them to a text list.
- Line 7 uses Windows' Deployment Image Servicing and Management tool to retrieve the file names from the list and install them.
- This uses Windows' own files and tools, so no malware here.
-
- I see, so that's how it works. Thanks for confirming.
Add Comment
Please, Sign In to add comment
Advertisement