: Author = v-42royt@mssupport.microsoft.com @ Title WindowsUpdateFix 15 Vista/W7 (x86/x64) / %date% @ %HOMEDRIVE% @ cd\ @ color 70 @ cls @ if not exist %systemroot%\System32\nsisvc.dll echo NOT VISTA @ if not exist %systemroot%\System32\nsisvc.dll exit @ %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 WinDefend start= auto obj= LocalSystem @ %systemroot%\system32\sc.exe config MsiServer start= demand obj= LocalSystem @ %systemroot%\system32\sc.exe config TrustedInstaller start= demand @ %systemroot%\system32\sc.exe config eventlog start= auto @ %systemroot%\system32\sc.exe config nlasvc start= auto @ %systemroot%\system32\sc.exe config WscSvc start= auto @ %systemroot%\system32\sc.exe config nsi start= auto @ %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 add HKLM\Components\ /v StoreDirty /f @ reg delete HKLM\Components\ /v StoreDirty /f @ reg add HKLM\Components\ /v AdvancedInstallersNeedResolving /f @ reg delete HKLM\Components\ /v AdvancedInstallersNeedResolving /f @ reg add HKLM\Components\ /v NextQueueEntryIndex /f @ reg delete HKLM\Components\ /v NextQueueEntryIndex /f @ reg add HKLM\Components\ /v PendingXmldentifier /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\ @ if not exist %systemroot%\system32\SoftwareDistribution mkdir %systemroot%\system32\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\ @ if exist %systemroot%\system32\catroot2 attrib -r -s -h %systemroot%\system32\catroot2 @ if exist %systemroot%\system32\catroot2 rmdir %systemroot%\system32\catroot2 /q /s @ 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 @ echo TrustedInstaller @ %systemroot%\system32\net.exe start TrustedInstaller @ echo nsi @ %systemroot%\system32\net.exe start nsi @ echo Eventlog @ %systemroot%\system32\net.exe start eventlog @ echo nlasvc @ %systemroot%\system32\net.exe start nlasvc @ echo WscSvc @ %systemroot%\system32\net.exe start WscSvc @ cd\ @start /wait %systemroot%\system32\msiexec /unreg @ echo regsvr32.exe atl.dll @ start /wait %systemroot%\system32\regsvr32.exe atl.dll /s @ echo regsvr32.exe cryptdlg.dll @ start /wait %systemroot%\system32\regsvr32.exe cryptdlg.dll /s @ echo regsvr32.exe cryptsvc.dll @ start /wait %systemroot%\system32\regsvr32.exe cryptsvc.dll /s @ echo regsvr32.exe initpki.dll @ start /wait %systemroot%\system32\regsvr32.exe initpki.dll /s @ echo regsvr32.exe jscript.dll @ start /wait %systemroot%\system32\regsvr32.exe jscript.dll /s @ echo regsvr32.exe msxml3.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml3.dll /s @ echo regsvr32.exe msxml3r.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml3r.dll /s @ echo regsvr32.exe msxml4.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml4.dll /s @ echo regsvr32.exe msxml4r.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml4r.dll /s @ echo regsvr32.exe msxml6.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml6.dll /s @ echo regsvr32.exe msxml6r.dll @ start /wait %systemroot%\system32\regsvr32.exe msxml6r.dll /s @ echo regsvr32.exe qmgr.dll @ start /wait %systemroot%\system32\regsvr32.exe qmgr.dll /s @ echo regsvr32.exe qmgrprxy.dll @ start /wait %systemroot%\system32\regsvr32.exe qmgrprxy.dll /s @ echo regsvr32.exe url.dll @ start /wait %systemroot%\system32\regsvr32.exe url.dll /s @ echo regsvr32.exe urlmon.dll @ start /wait %systemroot%\system32\regsvr32.exe urlmon.dll /s @ echo regsvr32.exe softpub.dll @ start /wait %systemroot%\system32\regsvr32.exe softpub.dll /s @ echo regsvr32.exe wintrust.dll @ start /wait %systemroot%\system32\regsvr32.exe wintrust.dll /s @ echo regsvr32.exe wuapi.dll @ start /wait %systemroot%\system32\regsvr32.exe wuapi.dll /s @ echo regsvr32.exe winhttp.dll @ start /wait %systemroot%\system32\regsvr32.exe winhttp.dll /s @ echo regsvr32.exe wuaueng.dll @ start /wait %systemroot%\system32\regsvr32.exe wuaueng.dll /s @ echo regsvr32.exe wups.dll @ start /wait %systemroot%\system32\regsvr32.exe wups.dll /s @ echo regsvr32.exe wups2.dll @ start /wait %systemroot%\system32\regsvr32.exe wups2.dll /s @ echo regsvr32.exe wucltux.dll @ start /wait %systemroot%\system32\regsvr32.exe wucltux.dll /s @ echo regsvr32.exe wuwebv.dll @ start /wait %systemroot%\system32\regsvr32.exe wuwebv.dll /s @ echo regsvr32.exe bitsprx2.dll @ start /wait %systemroot%\system32\regsvr32.exe bitsprx2.dll /s @ echo regsvr32.exe bitsprx3.dll @ start /wait %systemroot%\system32\regsvr32.exe bitsprx3.dll /s @ echo regsvr32.exe bitsprx4.dll @ start /wait %systemroot%\system32\regsvr32.exe bitsprx4.dll /s @ echo regsvr32.exe bitsprx5.dll @ start /wait %systemroot%\system32\regsvr32.exe bitsprx5.dll /s @ echo regsvr32.exe bitsigd.dll @ start /wait %systemroot%\system32\regsvr32.exe bitsigd.dll /s @ echo regsvr32.exe bitsperf.dll @ 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 @ %systemroot%\system32\netsh.exe interface ip show config @ echo fsutil resource setautoreset true c: @ fsutil resource setautoreset true c: @ %systemroot%\system32\netsh.exe winsock reset @ pause @ %systemroot%\system32\timedate.cpl