@ %HOMEDRIVE% @ cd\ @ color 1f @ cls %systemroot%\system32\sc.exe config WuAuServ start= auto obj= LocalSystem %systemroot%\system32\sc.exe config BITS start= demand obj= LocalSystem %systemroot%\system32\sc.exe config CryptSvc start= auto %systemroot%\system32\sc.exe config SlSvc start= auto %systemroot%\system32\sc.exe config WinDefend start= auto %systemroot%\system32\sc.exe config MsiServer start= demand obj= LocalSystem %systemroot%\system32\sc.exe sdset slsvc D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) %systemroot%\system32\sc.exe sdset wuauserv D:(A;;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOSDRCWDWO;;;WD) %systemroot%\system32\sc.exe sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA) %systemroot%\system32\sc.exe sdset cryptsvc D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) %systemroot%\system32\sc.exe sdset msiserver D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) @ cd\ reg delete HKLM\Components\ /v StoreDirty /f reg delete HKLM\Components\ /v AdvancedInstallersNeedResolving /f reg delete HKLM\Components\ /v NextQueueEntryIndex /f reg delete HKLM\Components\ /v PendingXmldentifier /f @ cd\ @ %systemroot%\system32\net.exe stop WuAuServ @ %systemroot%\system32\net.exe stop BITS @ %systemroot%\system32\net.exe stop CryptSvc @ %systemroot%\system32\net.exe stop WinDefend @ %systemroot%\system32\net.exe stop MsiServer @ cd\ cd %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\ del /q qmgr0.dat del /q qmgr1.dat @ cd\ @ cd %systemroot%\system32\ mkdir SoftwareDistribution copy %systemroot%\SoftwareDistribution\DataStore\DataStore.edb %systemroot%\system32\SoftwareDistribution copy %systemroot%\SoftwareDistribution\ReportingEvents.log %systemroot%\system32\SoftwareDistribution @ cd\ @ rmdir /q /s %systemroot%\SoftwareDistribution @cd\ @ mkdir %systemroot%\SoftwareDistribution\DataStore copy %systemroot%\system32\SoftwareDistribution\DataStore.edb %systemroot%\SoftwareDistribution\DataStore copy %systemroot%\system32\SoftwareDistribution\ReportingEvents.log %systemroot%\SoftwareDistribution @ cd\ @ attrib -r -s -h %systemroot%\system32 @ attrib -r -s -h %systemroot%\system32\catroot2 @ rmdir /q /s %systemroot%\system32\CatRoot2 @ cd\ @ %systemroot%\system32\net.exe start WuAuServ @ %systemroot%\system32\net.exe start BITS @ %systemroot%\system32\net.exe start CryptSvc @ %systemroot%\system32\net.exe start WinDefend @ cd\ @start /wait %systemroot%\system32\msiexec /unreg start /wait %systemroot%\system32\regsvr32.exe atl.dll /s start /wait %systemroot%\system32\regsvr32.exe cryptdlg.dll /s start /wait %systemroot%\system32\regsvr32.exe cryptsvc.dll /s start /wait %systemroot%\system32\regsvr32.exe initpki.dll /s start /wait %systemroot%\system32\regsvr32.exe jscript.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml3.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml3r.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml4.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml4r.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml6.dll /s start /wait %systemroot%\system32\regsvr32.exe msxml6r.dll /s start /wait %systemroot%\system32\regsvr32.exe qmgr.dll /s start /wait %systemroot%\system32\regsvr32.exe qmgrprxy.dll /s start /wait %systemroot%\system32\regsvr32.exe url.dll /s start /wait %systemroot%\system32\regsvr32.exe urlmon.dll /s start /wait %systemroot%\system32\regsvr32.exe softpub.dll /s start /wait %systemroot%\system32\regsvr32.exe wintrust.dll /s start /wait %systemroot%\system32\regsvr32.exe wuapi.dll /s start /wait %systemroot%\system32\regsvr32.exe winhttp.dll /s start /wait %systemroot%\system32\regsvr32.exe wuaueng.dll /s start /wait %systemroot%\system32\regsvr32.exe wups.dll /s start /wait %systemroot%\system32\regsvr32.exe wups2.dll /s start /wait %systemroot%\system32\regsvr32.exe wucltux.dll /s start /wait %systemroot%\system32\regsvr32.exe wuwebv.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsprx2.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsprx3.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsprx4.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsprx5.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsigd.dll /s start /wait %systemroot%\system32\regsvr32.exe bitsperf.dll /s @ cd\ @start /wait %systemroot%\system32\msiexec /regserver start /wait %systemroot%\system32\regsvr32.exe msi.dll /s @ %systemroot%\system32\net.exe start MsiServer @ cd\ @ %systemroot%\system32\ipconfig.exe /flushdns @ %systemroot%\system32\ipconfig.exe /displaydns @ %systemroot%\system32\netsh.exe winhttp reset proxy fsutil resource setautoreset true c: @ %systemroot%\system32\netsh.exe winsock reset @ pause