Advertisement
Guest User

Untitled

a guest
Aug 26th, 2021
251,709
1
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 1 0
  1. @echo off
  2. pushd "%~dp0"
  3.  
  4. dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
  5. dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
  6.  
  7. for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
  8. pause
Advertisement
Comments
  • Mischievous427
    48 days
    # text 0.09 KB | 0 0
    1. Has anyone checked if this code has any malware?
    2. I know it doesn't, but just to be sure.
    • -jorel
      33 days (edited)
      # text 0.31 KB | 0 0
      1. 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.
      2. Line 7 uses Windows' Deployment Image Servicing and Management tool to retrieve the file names from the list and install them.
      3. This uses Windows' own files and tools, so no malware here.
Add Comment
Please, Sign In to add comment
Advertisement