Advertisement
Guest User

Untitled

a guest
Sep 10th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. color 1a
  3. echo Windows Update Fixer Script
  4. echo.
  5. echo Plagiarised by /u/DoctorOctagonapus
  6. echo.
  7. echo ***RUN THIS AS AN ADMINISTRATOR. THIS WILL FAIL WHEN RUN AS A NORMAL USER.***
  8. echo.
  9.  
  10. echo Which mode do you want this to run in?
  11. echo 1 = Normal Mode
  12. echo 2 = HULK RAGE MODE
  13. echo.
  14.  
  15. set INPUT=
  16. Set /P Input="Please enter a choice [1]:"
  17.  
  18. echo Stopping services...
  19. echo Stopping Windows Update Service (wuauserv) (1 of 4)...
  20. net stop wuauserv
  21. echo Stopping Background Intelligent Transfer Service (bits) (2 of 4)...
  22. net stop bits
  23. echo Stopping Application Identity Service (appidsvc) (3 of 4)...
  24. net stop appidsvc
  25. echo Stopping Cryptographic Service (cryptsvc) (4 of 4)...
  26. net stop cryptsvc
  27. echo.
  28.  
  29. echo Resetting Windows Update components...
  30. rmdir /s /q C:\Windows\SoftwareDistribution
  31. mkdir C:\Windows\SoftwareDistribution
  32. echo.
  33.  
  34. if not "%INPUT%" == "2" goto NoHulkMode
  35.  
  36. REM Hulk Rage Mode starts here
  37. color 46
  38. echo HULK RAGE MODE DETECTED! HULK HATE BROKEN UPDATES!!!
  39. rmdir /s /q C:\Windows\system32\catroot2
  40. mkdir C:\windows\system32\catroot2
  41. sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
  42. sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
  43. echo.
  44.  
  45. REM echo Deleting qmgr*.dat files...
  46. REM Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
  47. REM echo.
  48.  
  49. echo Reregistering BITS and Windows Update files...
  50. cd /d %windir%\system32
  51. echo Registering Active Template Library (1 of 36)...
  52. regsvr32.exe /s atl.dll
  53. echo Registering Shell Browser UI Library (2 of 36)...
  54. regsvr32.exe /s browseui.dll
  55. echo Registering OLE32 Extensions for Win32 (3 of 36)...
  56. regsvr32.exe /s urlmon.dll
  57. echo Registering Microsoft HTML Viewer(4 of 36)...
  58. regsvr32.exe /s mshtml.dll
  59. echo Registering Shell Doc Object and Control Library (5 of 36)...
  60. regsvr32.exe /s shdocvw.dll
  61. echo Registering Microsoft JScript (6 of 36)...
  62. regsvr32.exe /s jscript.dll
  63. echo Registering Microsoft VB Script (7 of 36)...
  64. regsvr32.exe /s vbscript.dll
  65. echo Registering Microsoft Script Runtime (8 of 36)...
  66. regsvr32.exe /s scrrun.dll
  67. echo Registering Microsoft XML Parser (9 of 36)...
  68. regsvr32.exe /s msxml.dll
  69. echo Registering Microsoft XML Parser 3.0 SP11 (10 of 36)...
  70. regsvr32.exe /s msxml3.dll
  71. echo Registering Microsoft XML Parser 6.0 SP3 (11 of 36)...
  72. regsvr32.exe /s msxml6.dll
  73. echo Registering ActiveX Interface Marshaling Library (12 of 36)...
  74. regsvr32.exe /s actxprxy.dll
  75. echo Registering Softpub Forwarder DLL (13 of 36)...
  76. regsvr32.exe /s softpub.dll
  77. echo Registering Microsoft Trust Verification APIs (14 of 36)...
  78. regsvr32.exe /s wintrust.dll
  79. echo Registering Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider (15 of 36)...
  80. regsvr32.exe /s dssenh.dll
  81. echo Registering Microsoft Enhanced Cryptographic Provider (16 of 36)...
  82. regsvr32.exe /s rsaenh.dll
  83. echo Registering Gemplus Cryptographic Service Provide (17 of 36)...
  84. regsvr32.exe /s gpkcsp.dll
  85. echo Registering Infineon SICRYPT® Base Smart Card CSP (18 of 36)...
  86. regsvr32.exe /s sccbase.dll
  87. echo Registering Schlumberger Smart Card CryptoAPI Library (19 of 36)...
  88. regsvr32.exe /s slbcsp.dll
  89. echo Registering Microsoft Common Certificate Dialogs (20 of 36)...
  90. regsvr32.exe /s cryptdlg.dll
  91. echo Registering Object Linking and Embedding Automation (21 of 36)...
  92. regsvr32.exe /s oleaut32.dll
  93. echo Registering Microsoft OLE Library (22 of 36)...
  94. regsvr32.exe /s ole32.dll
  95. echo Registering Windows Shell Common DLL (23 of 36)...
  96. regsvr32.exe /s shell32.dll
  97. echo Registering Microsoft Trust Installation and Setup (24 of 36)...
  98. regsvr32.exe /s initpki.dll
  99. echo Registering Windows Update Client API (25 of 36)...
  100. regsvr32.exe /s wuapi.dll
  101. echo Registering Windows Update Agent (26 of 36)...
  102. regsvr32.exe /s wuaueng.dll
  103. echo Registering Windows Update AutoUpdate Engine  (27 of 36)...
  104. regsvr32.exe /s wuaueng1.dll
  105. echo Registering Windows Update Client UI Plugin (28 of 36)...
  106. regsvr32.exe /s wucltui.dll
  107. echo Registering Windows Update client proxy stub (29 of 36)...
  108. regsvr32.exe /s wups.dll
  109. echo Registering Windows Update client proxy stub 2 (30 of 36)...
  110. regsvr32.exe /s wups2.dll
  111. echo Registering Windows Update Web Control (31 of 36)...
  112. regsvr32.exe /s wuweb.dll
  113. echo Registering Background Intelligent Transfer Service (32 of 36)...
  114. regsvr32.exe /s qmgr.dll
  115. echo Registering Background Intelligent Transfer Service Proxy (33 of 36)...
  116. regsvr32.exe /s qmgrprxy.dll
  117. echo Registering Windows Update Client User Experience (34 of 36)...
  118. regsvr32.exe /s wucltux.dll
  119. echo Registering Microsoft Update Web Control (35 of 36)...
  120. regsvr32.exe /s muweb.dll
  121. echo Registering Windows Update Vista Web Control  (36 of 36)...
  122. regsvr32.exe /s wuwebv.dll
  123. echo.
  124. echo Resetting Winsock...
  125. netsh winsock reset
  126. echo.
  127. echo Resetting proxy settings...
  128. netsh winhttp reset proxy
  129. echo.
  130. REM Hulk Rage Mode ends here
  131. color 1a
  132.  
  133. :NoHulkMode
  134. echo Starting services...
  135. echo Starting Background Intelligent Transfer Service (bits) (1 of 4)...
  136. net start bits
  137. echo Starting Windows Update Service (wuauserv) (2 of 4)...
  138. net start wuauserv
  139. echo Starting Application Identity Service (appidsvc) (3 of 4)...
  140. net start appidsvc
  141. echo Starting Cryptographic Service (cryptsvc) (4 of 4)...
  142. net start cryptsvc
  143. 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.
  144. echo.
  145.  
  146. echo Press any key to exit.
  147. pause >nul
  148. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement