Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Windows Update - Reset

26 Aug 2011   #50

64-bit Windows 10 Pro


Sorry mate. If it were the BAT files from here that caused it, then it would be a easy fix. It's just not possible for them to cause those issues since the only reset and re-register Windows Update and nothing else.

You could create the bootable DVD or USB Microsoft Standalone System Sweeper on another 32-bit computer to boot from on your computer to scan it for malware.

Are you able to log into another administrator account, the built-in Administrator, or Safe Mode to create backups of anything that you do not want to lose?

My System SpecsSystem Spec
31 Aug 2011   #51

MS Windows 7 Ultimate SP1 64-bit

Another excellent tutorial.

I have two questions:
Is Option 2 to be preferred over Option 1?

In what situations should I recommend this tutorial?

Ive been trying to help a couple of chaps who have really messed up their computers and then are so messed up that I'm not sure where to start.

My System SpecsSystem Spec
31 Aug 2011   #52

64-bit Windows 10 Pro

Hello Karl,

Option One, is only for clearing the Windows Update history to not have the installed or failed updates listed anymore. It doesn't help with any Windows Update errors.

Option Two is to reset and re-register Windows Update in an attempt to fix it.

The links in the notes under each option will give some more details on them though.
My System SpecsSystem Spec
31 Aug 2011   #53

MS Windows 7 Ultimate SP1 64-bit

Thanks Shawn,

That confirms everything. Just wanted to make sure that I'd not missed anything.

My System SpecsSystem Spec

31 Aug 2011   #54

64-bit Windows 10 Pro

You're welcome mate.
My System SpecsSystem Spec
31 Aug 2011   #55

Vista Home Premium x86 SP2

Quote   Quote: Originally Posted by karlsnooks View Post
In what situations should I recommend this tutorial?

Ive been trying to help a couple of chaps who have really messed up their computers and then are so messed up that I'm not sure where to start.

Hello Karl,

I know that this wasn't addressed to me, and so I hope that this post is appropriate...

Basically, as you already know (just for other, possible readers in the future), this tutorial is for Windows Update errors only. It won't help with anything related to Windows Update, for example SFC or Side by Side Configuration errors.

This method of reset or equivalent used to be part of my first post to users. However, I have subsequently removed this from my first post, and now only use it when I have evidence that it may help, to save users time, and to prevent the Windows Update history from being deleted needlessly.

May I just show you which parts of the script fix which errors?

Please have a look here: How do I reset Windows Update components?

Now, Brink's .bat files are better, in that they re-register more components than the above link does. I do have a reason for linking to this...

If you were to run the above Fix-It, you would be presented with an option to run in Aggressive Mode:

Windows Update - Reset-aggressiveoptions.png

Aggressive Option does everything mentioned in the link above, and non-aggressive mode does everything except step 4.

The reason is that step 4 deletes Windows Update history, however, step 4 also fixes the most problems!

Therefore, BOTH batch files in this tutorial fix Windows Update errors:

Option 1: Reset_Windows_Update_History.bat:

This will delete your History, but not uninstall any updates. This is a side effect.

However, it will also fix many errors. The SoftwareDistribution\Download folder is a temporary store for Windows Updates. It stores downloaded installers. extracted installers. and other such temporary files. The SoftwareDistribution folder itself stores parts of the Windows Update Agent, and other temporary files.

Errors fixed by this batch file:
  • Bad download of a Windows Update.
  • Bad extraction of a Windows Update.
  • Corrupt Windows Update Agent download.
  • The 0x800B0100 error code, but ONLY if no errors show in a System Update Readiness Tool logfile (more notes on this later...)
  • Further error codes after fixing all errors in a System Update Readiness Tool logfile.
  • etc. etc.

This actually accounts for the vast majority of errors fixed by a reset. Please be aware that:
  • The Option Two .bat file does NOT include the all important renaming of the SoftwareDistribution folder.
  • Neither of these .bat files rename the CatRoot2 folder.
  • NEVER rename the CatRoot folder (you can rename the CatRoot2 folder, but NEVER the CatRoot )
For more information on what to look out for/how to fix CatRoot/CatRoot2 corruptions, see here: You cannot install some updates or programs

Option 2: Reset_Reregister_Windows_Update_Components.bat:

This does not rename either CatRoot2 or SoftwareDistribution folder, and so fixes not very many errors, however, it will fix:
  • Some cases of the Windows Update dialogue not being displayed properly.
  • Some cases of the BITS and Windows Update services failing to start with error code 5 (Access is Denied)
  • Some errors relating to BITS.
  • Corrupt WinSock.
  • For when you get really stuck, and don't know what else to try
Some other notes:

Error code 0x800B0100:Means TRUST_E_NOSIGNATURE. A good 90% of the time, this is caused by a missing or corrupt .cat or .mum file, in the Windows folder. Don't ever attempt a manual fix. As soon as you see this error code, run the System Update Readiness Tool, and then fix any errors.

Also, I have written many additional tutorials and tools to automate the fixing procedure for many System Update Readiness Tool (SURT) error codes, so do drop me a PM if anyone is ever interested, and I can send you what I have, although I intend to release a small load of public tutorials as soon as I find the time to touch them up

If, in a very rare case, you find a 0x800B0100 error, and find no errors in a System Update Readiness Tool logfile, then what has happened is that instead of this file being corrupt in a Windows directory, it is corrupt in the extracted temporary location in SoftwareDistributation.

Here is evidence from a CBS.log of just such a corruption (line spoofed)

2011-05-22 15:07:49, Error                 CBS    Failed to verify if catalog file \\?\C:\Windows\SoftwareDistribution\Download\b5702e0fe00acea3cb977a242b00ceb5\ is valid. [HRESULT = 0x800b0100 - TRUST_E_NOSIGNATURE]
In this case, run Brink's Option 1 .bat to fix some cases

Other notes:
  • If there are errors in a System Update Readiness Tool logfile, there is not point in trying either of these batch file, or anything else like that. Until those errors are fixed, Windows Update will not work. If a user posts a CheckSUR.log, just open it, and see if there are any lines beginning with (f) which stands for FATAL. If there are, there is no point in recommending this tutorial.
  • Also, if a service is completely missing, neither of these batch files will fix this. This problem requires a very quick and simple registry fix.
  • SFC error "Windows Resource Protection could not start the repair service" is a service problem, whereas the similar SFC error "Windows Resource Protection could not perform the requested operation" relates to a corruption too big too be fixed by SFC, and must be analysed through the whole CBS.log (it will NOT appear in a parsed CBS.log). A common example is if you delete certain whole Windows directories, SFC will throw this error.
  • If you ever recommend this to an OP, in order to fix all problems, always recommend running BOTH .bat files, especially Option 1's .bat file.

I can't think of anything else at the moment...

I am not sure if this has been helpful or not, but I have written it now!


My System SpecsSystem Spec
31 Aug 2011   #56

MS Windows 7 Ultimate SP1 64-bit


Many thanks. Now to digest and assimilate all.

My System SpecsSystem Spec
31 Aug 2011   #57

MS Windows 7 Ultimate SP1 64-bit

Was reviewing the .BAT file from option 1.

I do not have a %windir%\system32\softwaredistribution folder.

Is this normal?

I run CMD from an elevated command prompt.

I enter a rename command and here's what happens:

C:\>ren %systemroot%\SoftwareDistribution\Datastore *.bak
The filename, directory name, or volume label syntax is incorrect.

What am I doing wrong?

The mistake must be starring me in the face.
My System SpecsSystem Spec
01 Sep 2011   #58

64-bit Windows 10 Pro

Sorry for the late reply Karl.

I didn't have the %windir%\system32\softwaredistribution folder either, so I removed it.

I'm not sure why Microsoft had the command like that at this link. To rename that folder with .bak at the end, the command should be this below instead.

Ren %systemroot%\SoftwareDistribution\DataStore DataStore.bak

Of course, you have to stop the Windows Update service with the command below first.

net stop wuauserv
My System SpecsSystem Spec
01 Sep 2011   #59

MS Windows 7 Ultimate SP1 64-bit

Many thanks Shawn.

It's always amazing how a typo from prior KBs often ends up being propagated.
My System SpecsSystem Spec

 Windows Update - Reset

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search

Similar help and support threads
Windows 7 Tutorial Category
Reliabilty Monitor Reset Update Time
My Reliabilty Monitor had to be reset because it stopped updating the history. I've reset the monitor and the history updates each day at 7:00 pm EST. Does ayone out there know if and how I can change the update time from 7:00pm to an earlier time in the morning. My preference is to have an...
Performance & Maintenance
Corrupt windows files after Factory reset and window update won't work
Hello, After a faulty harddrive (one of a RAID 0 array), both of which were replaced by twice the capacity HDDs, I restored from a system image, having changed my RAID Assembly to RAID 1. However I had many problem with my setup, one of which was the complete inability to download anything,...
Installation & Setup
A update caused windows update settings to reset?
Just posting as a warning to others (and to vent my annoyance a bit) I always set up my Windows update settings to "check and notify but don't download and install unless I tell you to" to prevent HDD thrashing, performance downgrading at the worst possible times and annoying "oh, you need to...
Windows Updates & Activation
Windows Update seems to have reset or created an account password
I've been using my Lenovo portable with Windows 7 Home Premium for about 6 months. I have never had a password on my account (I live alone). I was prompted this morning to restart to install updates; when I did, Windows asked for a password. I've tried all my usual passwords, including blank,...
Windows Updates & Activation
Desktop reset to default after each update
When Windows 7 completes an update all of my icons are moved to the left side and some are missing. I set everthing back to the way I had it. I don't know if this is connected to the problem, but I will place the computor in the "Sleep Mode", then when I wake it up I get the message, "Please wait...
Windows Updates & Activation
Laptop factory reset after windows update!!!!
I'm not sure what has happened here. My daughter has a sony Vaio laptop that came with Home Premium installed. I upgraded it to Professional and it's been working fine for over a year. A few weeks ago it just wouldn't start so inserted the Professional installation discs and did a start up...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:19.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App