rem Windows update fix - Deep clean rem -------------------------------------------------------------------- rem -------------------------------------------------------------------- rem Warning this is running in DEEP CLEAN mode rem -------------------------------------------------------------------- rem -------------------------------------------------------------------- rem Have you tried standard first? rem -------------------------------------------------------------------- rem -------------------------------------------------------------------- pause rem Stop the BITS service and the Windows Update service rem -------------------------------------------------------------------- net stop bits net stop wuauserv rem Delete QMGR dat files rem -------------------------------------------------------------------- Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat" rem Full reset of Windows update and BITS rem -------------------------------------------------------------------- Ren %systemroot%\SoftwareDistribution\DataStore *.bak Ren %systemroot%\SoftwareDistribution\Download *.bak Ren %systemroot%\system32\catroot2 *.bak 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) rem Reregister the BITS files and the Windows Update files rem -------------------------------------------------------------------- cd /d %windir%\system32 regsvr32.exe atl.dll regsvr32.exe urlmon.dll regsvr32.exe vbscript.dll regsvr32.exe msxml3.dll regsvr32.exe msxml6.dll regsvr32.exe softpub.dll regsvr32.exe dssenh.dll regsvr32.exe rsaenh.dll regsvr32.exe shell32.dll regsvr32.exe wuapi.dll regsvr32.exe wups2.dll regsvr32.exe qmgrprxy.dll rem Reset Winsock rem -------------------------------------------------------------------- netsh reset winsock rem Restart the BITS service rem -------------------------------------------------------------------- net start bits net start wuauserv rem -------------------------------------------------------------------- rem -------------------------------------------------------------------- rem Please now install the windows updsate agent for your system 32 or 64 rem -------------------------------------------------------------------- rem -------------------------------------------------------------------- pause