Microsoft Fix It tool

Write a batch file to do the following:

1) Shutdown windows update service
2) Delete key: HKLM\Software\Microsoft\Windows\WindowsUpdate
3) Start windows update service

Be patient, give it a few times to check in and sort itself out. You can help force the issue by issuingwuauclt /resetauthorization /detectnow, but honestly you can just wait and it'll sort itself out.

( Now I'll probably get a few people scream bloody murder for this, but I have done this time and again with no issues. I've used this technique on fresh installs ( from image ) and when attempting to correct windows update issues. Works every time )

EDIT: Mine should be considered a short cut that usually works. If you are well and truly fubar'd, then follow their instructions.
 
Last edited:
I used the Microsoft Fix It tool on there site
http://support.microsoft.com/kb/971058
But I would love to have this thing just encase a computer is not on the internet.
Any one know where I can find it?

There is a utility called "Dial a fix"...Google it, works offline..but it's old and only for Windows up to XP and Server 03. Not for Veeesta or Win7 or 08.

There is a utility called "FixWin" which is for Vista and Win7...
http://www.thewindowsclub.com/repair-fix-windows-7-vista-problems-with-fixwin-utility
It has a utility to fix a blank page when doing Microsoft Updates..but I've not had a chance to try it on a broken Vista/Win7 rig.

I have used that FixIt utility on lots of broken XP rigs where my normal fixes for broken updates didn't work...it's a great tool. I've started using a lot of the FixIt tools lately as time savers, they're getting pretty good.
 
Microsoft's Fix It tools are pretty much automated scripts for what you can do yourself. I like them, and recommend them to people when they are looking for a fix. It works excellent.

The FixWin from The Windows Club works amazingly well, too.
 
Here is the script I wrote from learning about this issue...

Code:
@echo off

echo +===+ Stopping Automatic Update Service and BITS +===+
echo.

net stop wuauserv
net stop "Background Intelligent Transfer Service"


echo +===+ Making sure the proper GPOs are applied +===+
echo.
gpupdate
echo.

echo +===+ Re-registering services that may be broken +===+
echo.
REGSVR32 /s WUAUENG.DLL
REGSVR32 /s WUAUENG1.DLL
REGSVR32 /s ATL.DLL
REGSVR32 /s WUCLTUI.DLL
REGSVR32 /s WUPS.DLL
REGSVR32 /s WUPS2.DLL
REGSVR32 /s WUWEB.DLL

REGSVR32 /s ATL.DLL

echo ---------- Services have been re-registered!
echo.
echo.

echo +===+ Removing the temp directories +===+
echo.
rd %windir%\SoftwareDistribution\DataStore\logs /s /q
rd %windir%\SoftwareDistribution\DataStore /s /q
rd %windir%\SoftwareDistribution\Download /s /q
rd %windir%\SoftwareDistribution\EventCache /s /q

echo ---------- Temp Directories Removed!
echo.
echo.

echo +===+ Fixing registry +===+
echo.
regedit /s fixwsusregkey.reg
echo ---------- Registry is now fixed!
echo.
echo.

echo +===+ Re-starting Automatic Update Service and BITS +===+ 
echo.
net start wuauserv
net start "Background Intelligent Transfer Service"
echo.

echo +===+ Re-registering with WSUS Server... +===+
wuauclt /resetauthorization /detectnow
echo.
echo ---------- Registered with WSUS Server!
echo.
echo.
PAUSE

Here is the reg file that also needs to go in the root folder where this bat file is, name it fixwsusregkey.reg

Code:
REGEDIT4

// Registry file generated by the Application Launcher.

[HKEY_LOCAL_MACHINE\SOFTWARE]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate]
"SusClientIdValidation"=-
"SusClientId"=-


Im sure theres an easier way but this works for me. Used it on over 150 cloned servers.
 
Here is the script I wrote from learning about this issue...

Code:
@echo off

echo +===+ Stopping Automatic Update Service and BITS +===+
echo.

net stop wuauserv
net stop "Background Intelligent Transfer Service"


echo +===+ Making sure the proper GPOs are applied +===+
echo.
gpupdate
echo.

echo +===+ Re-registering services that may be broken +===+
echo.
REGSVR32 /s WUAUENG.DLL
REGSVR32 /s WUAUENG1.DLL
REGSVR32 /s ATL.DLL
REGSVR32 /s WUCLTUI.DLL
REGSVR32 /s WUPS.DLL
REGSVR32 /s WUPS2.DLL
REGSVR32 /s WUWEB.DLL

REGSVR32 /s ATL.DLL

echo ---------- Services have been re-registered!
echo.
echo.

echo +===+ Removing the temp directories +===+
echo.
rd %windir%\SoftwareDistribution\DataStore\logs /s /q
rd %windir%\SoftwareDistribution\DataStore /s /q
rd %windir%\SoftwareDistribution\Download /s /q
rd %windir%\SoftwareDistribution\EventCache /s /q

echo ---------- Temp Directories Removed!
echo.
echo.

echo +===+ Fixing registry +===+
echo.
regedit /s fixwsusregkey.reg
echo ---------- Registry is now fixed!
echo.
echo.

echo +===+ Re-starting Automatic Update Service and BITS +===+ 
echo.
net start wuauserv
net start "Background Intelligent Transfer Service"
echo.

echo +===+ Re-registering with WSUS Server... +===+
wuauclt /resetauthorization /detectnow
echo.
echo ---------- Registered with WSUS Server!
echo.
echo.
PAUSE

Here is the reg file that also needs to go in the root folder where this bat file is, name it fixwsusregkey.reg

Code:
REGEDIT4

// Registry file generated by the Application Launcher.

[HKEY_LOCAL_MACHINE\SOFTWARE]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate]
"SusClientIdValidation"=-
"SusClientId"=-


Im sure theres an easier way but this works for me. Used it on over 150 cloned servers.

What OS are you using this on?

I was trying to locate my WSUS cleanup script which was basically the same thing you have there but I can't find it. I'll need this for our new deployment - so thanks.

 
What OS are you using this on?

I was trying to locate my WSUS cleanup script which was basically the same thing you have there but I can't find it. I'll need this for our new deployment - so thanks.


I have only really used it on 2k3 Servers...
 
Microsoft's Fix It tools are pretty much automated scripts for what you can do yourself.

Yeah, the "Let me fix it myself" section of the KB page actually lists all the commands you need. Just paste them all into a .cmd file.
 
Back
Top