Advertisement
Guest User

reset

a guest
Mar 22nd, 2017
1,598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.04 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3.  
  4.  
  5. CD %windir%\system32
  6.  
  7. ECHO Stopping Services
  8.  
  9.  
  10.  
  11. net stop bits
  12.  
  13. net stop wuauserv
  14.  
  15. net stop cryptsvc
  16.  
  17.  
  18.  
  19. ECHO Delete Downloaded Updates
  20.  
  21.  
  22.  
  23. DEL "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
  24.  
  25.  
  26.  
  27. ECHO Clear Update Cache
  28.  
  29.  
  30.  
  31. REN %systemroot%\SoftwareDistribution SoftwareDistribution.old
  32.  
  33. REN %systemroot%\system32\catroot2 catroot2.old
  34.  
  35. MKDIR %systemroot%\system32\catroot2
  36.  
  37.  
  38.  
  39. ECHO Reset BITS
  40.  
  41.  
  42.  
  43. sc config BITS binPath= "C:\Windows\System32\svchost.exe -k netsvcs" DisplayName= "Background Intelligent Transfer Service" depend= Rpcss/EventSystem start= auto obj= "LocalSystem" password= ""
  44.  
  45. sc description BITS "Transfers files in the background using idle network bandwidth. If the service is disabled, then any applications that depend on BITS, such as Windows Update or MSN Explorer, will be unable to automatically download programs and other information."
  46.  
  47. sc privs BITS SeCreateGlobalPrivilege/SeImpersonatePrivilege/SeTcbPrivilege/SeAssignPrimaryTokenPrivilege/SeIncreaseQuotaPrivilege
  48.  
  49. sc sdset BITS D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA)
  50.  
  51. sc sidtype BITS UNRESTRICTED
  52.  
  53.  
  54.  
  55. ECHO Reset Windows Update
  56.  
  57.  
  58.  
  59. sc config wuauserv binPath= "C:\Windows\System32\svchost.exe -k netsvcs" DisplayName= "Windows Update" depend= Rpcss start= auto obj= "LocalSystem" password= ""
  60.  
  61. sc privs wuauserv SeAuditPrivilege/SeCreateGlobalPrivilege/SeCreatePageFilePrivilege/SeTcbPrivilege/SeAssignPrimaryTokenPrivilege/SeImpersonatePrivilege/SeIncreaseQuotaPrivilege/SeShutdownPrivilege
  62.  
  63. sc sdset wuauserv D:(A;;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOSDRCWDWO;;;WD)
  64.  
  65. sc sidtype wuauserv UNRESTRICTED
  66.  
  67.  
  68.  
  69. ECHO Reset Cryptographic Services
  70.  
  71.  
  72.  
  73. sc config CryptSvc binPath= "C:\Windows\system32\svchost.exe -k NetworkService" DisplayName= "Cryptographic Services" depend= Rpcss start= auto obj= "NT Authority\NetworkService" password= ""
  74.  
  75. sc privs CryptSvc SeChangeNotifyPrivilege/SeCreateGlobalPrivilege/SeImpersonatePrivilege
  76.  
  77. sc sdset CryptSvc D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
  78.  
  79. sc sidtype CryptSvc UNRESTRICTED
  80.  
  81.  
  82.  
  83. ECHO Reset WMI Repository
  84.  
  85.  
  86.  
  87. net stop winmgmt
  88.  
  89. REN %systemroot%\system32\wbem\Repository Repository.old
  90.  
  91.  
  92.  
  93. ECHO Register Components
  94.  
  95.  
  96.  
  97. REGSVR32.EXE /u /s /i atl.dll
  98.  
  99. REGSVR32.EXE /u /s /i urlmon.dll
  100.  
  101. REGSVR32.EXE /u /s /i mshtml.dll
  102.  
  103. REGSVR32.EXE /u /s /i shdocvw.dll
  104.  
  105. REGSVR32.EXE /u /s /i browseui.dll
  106.  
  107. REGSVR32.EXE /u /s /i jscript.dll
  108.  
  109. REGSVR32.EXE /u /s /i vbscript.dll
  110.  
  111. REGSVR32.EXE /u /s /i scrrun.dll
  112.  
  113. REGSVR32.EXE /u /s /i msxml.dll
  114.  
  115. REGSVR32.EXE /u /s /i msxml6.dll
  116.  
  117. REGSVR32.EXE /u /s /i msxml3.dll
  118.  
  119. REGSVR32.EXE /u /s /i actxprxy.dll
  120.  
  121. REGSVR32.EXE /u /s /i softpub.dll
  122.  
  123. REGSVR32.EXE /u /s /i wintrust.dll
  124.  
  125. REGSVR32.EXE /u /s /i dssenh.dll
  126.  
  127. REGSVR32.EXE /u /s /i gpkcsp.dll
  128.  
  129. REGSVR32.EXE /u /s /i rsaenh.dll
  130.  
  131. REGSVR32.EXE /u /s /i sccbase.dll
  132.  
  133. REGSVR32.EXE /u /s /i slbcsp.dll
  134.  
  135. REGSVR32.EXE /u /s /i cryptdlg.dll
  136.  
  137. REGSVR32.EXE /u /s /i oleaut32.dll
  138.  
  139. REGSVR32.EXE /u /s /i ole32.dll
  140.  
  141. REGSVR32.EXE /u /s /i shell32.dll
  142.  
  143. REGSVR32.EXE /u /s /i initpki.dll
  144.  
  145. REGSVR32.EXE /u /s /i wuapi.dll
  146.  
  147. REGSVR32.EXE /u /s /i wuaueng.dll
  148.  
  149. REGSVR32.EXE /u /s /i wuaueng1.dll
  150.  
  151. REGSVR32.EXE /u /s /i wucltui.dll
  152.  
  153. REGSVR32.EXE /u /s /i wups.dll
  154.  
  155. REGSVR32.EXE /u /s /i wups2.dll
  156.  
  157. REGSVR32.EXE /u /s /i wuweb.dll
  158.  
  159. REGSVR32.EXE /u /s /i qmgr.dll
  160.  
  161. REGSVR32.EXE /u /s /i qmgrprxy.dll
  162.  
  163. REGSVR32.EXE /u /s /i wucltux.dll
  164.  
  165. REGSVR32.EXE /u /s /i muweb.dll
  166.  
  167. REGSVR32.EXE /u /s /i wuwebv.dll
  168.  
  169.  
  170.  
  171. BitsAdmin /RESET /allusers
  172.  
  173.  
  174.  
  175. ECHO Start Services
  176.  
  177.  
  178.  
  179. net start wuauserv
  180.  
  181. net start cryptsvc
  182.  
  183. net start bits
  184.  
  185.  
  186.  
  187. MSIEXEC /unregister
  188.  
  189. MSIEXEC /regserver
  190.  
  191. REGSVR32 /u /s /i MSI.dll
  192.  
  193.  
  194.  
  195. ECHO Finishing Up
  196.  
  197.  
  198.  
  199. shutdown -r -t 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement