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 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