Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- reg query HKU\S-1-5-19 1>nul 2>nul || (echo Run as administrator&pause&goto :eof)
- cd /d "%~dp0"
- set KB=KB5005633
- if not exist "*%KB%*.msu" (echo %KB% msu not found&pause&goto :eof)
- mkdir .\%KB%
- expand.exe -f:*%KB%*.cab *%KB%*.msu . >nul
- expand.exe -f:* *%KB%*.cab %KB% >nul
- del /f /q *%KB%*.cab
- dism /norestart /online /add-package /packagepath:%KB%\update.mum
- rd /s /q %KB%
- echo Restart the system
- pause
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement