Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 1a
- echo Windows Update Fixer Script
- echo.
- echo Plagiarised by /u/DoctorOctagonapus
- echo.
- echo ***RUN THIS AS AN ADMINISTRATOR. THIS WILL FAIL WHEN RUN AS A NORMAL USER.***
- echo.
- echo Which mode do you want this to run in?
- echo 1 = Normal Mode
- echo 2 = HULK RAGE MODE
- echo.
- set INPUT=
- Set /P Input="Please enter a choice [1]:"
- echo Stopping services...
- echo Stopping Windows Update Service (wuauserv) (1 of 4)...
- net stop wuauserv
- echo Stopping Background Intelligent Transfer Service (bits) (2 of 4)...
- net stop bits
- echo Stopping Application Identity Service (appidsvc) (3 of 4)...
- net stop appidsvc
- echo Stopping Cryptographic Service (cryptsvc) (4 of 4)...
- net stop cryptsvc
- echo.
- echo Resetting Windows Update components...
- rmdir /s /q C:\Windows\SoftwareDistribution
- mkdir C:\Windows\SoftwareDistribution
- echo.
- if not "%INPUT%" == "2" goto NoHulkMode
- REM Hulk Rage Mode starts here
- color 46
- echo HULK RAGE MODE DETECTED! HULK HATE BROKEN UPDATES!!!
- rmdir /s /q C:\Windows\system32\catroot2
- mkdir C:\windows\system32\catroot2
- sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
- sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
- echo.
- REM echo Deleting qmgr*.dat files...
- REM Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
- REM echo.
- echo Reregistering BITS and Windows Update files...
- cd /d %windir%\system32
- echo Registering Active Template Library (1 of 36)...
- regsvr32.exe /s atl.dll
- echo Registering Shell Browser UI Library (2 of 36)...
- regsvr32.exe /s browseui.dll
- echo Registering OLE32 Extensions for Win32 (3 of 36)...
- regsvr32.exe /s urlmon.dll
- echo Registering Microsoft HTML Viewer(4 of 36)...
- regsvr32.exe /s mshtml.dll
- echo Registering Shell Doc Object and Control Library (5 of 36)...
- regsvr32.exe /s shdocvw.dll
- echo Registering Microsoft JScript (6 of 36)...
- regsvr32.exe /s jscript.dll
- echo Registering Microsoft VB Script (7 of 36)...
- regsvr32.exe /s vbscript.dll
- echo Registering Microsoft Script Runtime (8 of 36)...
- regsvr32.exe /s scrrun.dll
- echo Registering Microsoft XML Parser (9 of 36)...
- regsvr32.exe /s msxml.dll
- echo Registering Microsoft XML Parser 3.0 SP11 (10 of 36)...
- regsvr32.exe /s msxml3.dll
- echo Registering Microsoft XML Parser 6.0 SP3 (11 of 36)...
- regsvr32.exe /s msxml6.dll
- echo Registering ActiveX Interface Marshaling Library (12 of 36)...
- regsvr32.exe /s actxprxy.dll
- echo Registering Softpub Forwarder DLL (13 of 36)...
- regsvr32.exe /s softpub.dll
- echo Registering Microsoft Trust Verification APIs (14 of 36)...
- regsvr32.exe /s wintrust.dll
- echo Registering Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider (15 of 36)...
- regsvr32.exe /s dssenh.dll
- echo Registering Microsoft Enhanced Cryptographic Provider (16 of 36)...
- regsvr32.exe /s rsaenh.dll
- echo Registering Gemplus Cryptographic Service Provide (17 of 36)...
- regsvr32.exe /s gpkcsp.dll
- echo Registering Infineon SICRYPT® Base Smart Card CSP (18 of 36)...
- regsvr32.exe /s sccbase.dll
- echo Registering Schlumberger Smart Card CryptoAPI Library (19 of 36)...
- regsvr32.exe /s slbcsp.dll
- echo Registering Microsoft Common Certificate Dialogs (20 of 36)...
- regsvr32.exe /s cryptdlg.dll
- echo Registering Object Linking and Embedding Automation (21 of 36)...
- regsvr32.exe /s oleaut32.dll
- echo Registering Microsoft OLE Library (22 of 36)...
- regsvr32.exe /s ole32.dll
- echo Registering Windows Shell Common DLL (23 of 36)...
- regsvr32.exe /s shell32.dll
- echo Registering Microsoft Trust Installation and Setup (24 of 36)...
- regsvr32.exe /s initpki.dll
- echo Registering Windows Update Client API (25 of 36)...
- regsvr32.exe /s wuapi.dll
- echo Registering Windows Update Agent (26 of 36)...
- regsvr32.exe /s wuaueng.dll
- echo Registering Windows Update AutoUpdate Engine (27 of 36)...
- regsvr32.exe /s wuaueng1.dll
- echo Registering Windows Update Client UI Plugin (28 of 36)...
- regsvr32.exe /s wucltui.dll
- echo Registering Windows Update client proxy stub (29 of 36)...
- regsvr32.exe /s wups.dll
- echo Registering Windows Update client proxy stub 2 (30 of 36)...
- regsvr32.exe /s wups2.dll
- echo Registering Windows Update Web Control (31 of 36)...
- regsvr32.exe /s wuweb.dll
- echo Registering Background Intelligent Transfer Service (32 of 36)...
- regsvr32.exe /s qmgr.dll
- echo Registering Background Intelligent Transfer Service Proxy (33 of 36)...
- regsvr32.exe /s qmgrprxy.dll
- echo Registering Windows Update Client User Experience (34 of 36)...
- regsvr32.exe /s wucltux.dll
- echo Registering Microsoft Update Web Control (35 of 36)...
- regsvr32.exe /s muweb.dll
- echo Registering Windows Update Vista Web Control (36 of 36)...
- regsvr32.exe /s wuwebv.dll
- echo.
- echo Resetting Winsock...
- netsh winsock reset
- echo.
- echo Resetting proxy settings...
- netsh winhttp reset proxy
- echo.
- REM Hulk Rage Mode ends here
- color 1a
- :NoHulkMode
- echo Starting services...
- echo Starting Background Intelligent Transfer Service (bits) (1 of 4)...
- net start bits
- echo Starting Windows Update Service (wuauserv) (2 of 4)...
- net start wuauserv
- echo Starting Application Identity Service (appidsvc) (3 of 4)...
- net start appidsvc
- echo Starting Cryptographic Service (cryptsvc) (4 of 4)...
- net start cryptsvc
- echo Complete! Download and install the latest Windows Update agent from https://support.microsoft.com/en-us/help/949104/how-to-update-the-windows-update-agent-to-the-latest-version and then restart your computer.
- echo.
- echo Press any key to exit.
- pause >nul
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement