Windows Updates Stuck on Shut Down or Reboot – “Installing update…”
NOTICE: If you are looking for this fix for Windows 10 you can find it by clicking here.
When you run Windows Updates on your computer you assume that everything will be fine. However, sometimes you can get a corrupt update and your computer when rebooted or shut down will get stuck on this dreaded screen:
This will not go away and most people outside of the IT world usually take full notice of the “Please do not power off or unplug your machine…” message and we have known clients leave machines on this screen for days in the hope that it will eventually start working – it won’t!
Before going into the full written guide, you can check out the video demo below which shows the fix being carried out. You should carry on to read and take notice of the full guide below though as this has the advanced details on how to carry out this fix correctly.
So, what do you do?
Well, the first thing you will need to do identify that you actually have a problem and that your machine is not actually doing as it says. Sometimes, updates can be very large (especially service pack updates) so you need to be sure that you machine is actually stuck. What we usually advise is that if your computer has been stuck on a message similar to the one above and has not changed for around 30 minutes then it certainly has a problem that will need to be acted on.
Once you are convinced you have a problem, you should power off your machine. This means holding down the power button (on your computer not a monitor which we have seen people do!…) for around 10 seconds. You should notice that you computer will completely shut off. Now – turn it back on again.
This should now take you straight back into Windows – if you are very unlucky then the update may have screwed up your computer and it may be time for a rebuild. But lets assume everything is ok and you are now back into Windows.
I am back in Windows but what now?
Do not turn off your machine or reboot it as you will just get stuck on the “Installing Updates…” message again. The reason this is happening is because of a corrupt update or a corrupt update database. Either way, the fix is pretty simple if you have a basic understanding of computers.
There is a folder under the Windows directory called “SoftwareDistribution“. This folder is where all Windows Updates are downloaded to and run from as well as the Windows Update database being in here. So, if it is corrupt, we need to get rid of it and recreate it from scratch – this will fix your problems.
How do I recreate my Windows Update SoftwareDistribution Folder and Database?
First of all, you cannot just go in and delete or rename the folder, there is a Windows Update service running that will stop you from doing this. So, the plan is to stop the service, rename the current folder, start the service again which will then in turn recreate your SoftwareDistribution folder and Windows Update database.
To do this, you should follow these steps:
You first need to start an elevated command prompt, to do this in Windows 7, click Start then browse to All Programs then Accessories and then right click on Command Prompt and click “Run as Administrator“:
To do this in Windows 8, just right click the bottom left corner Start button and click “Command Prompt (Admin)“:
You should then be presented with a back box that looks like this:
You then need to stop the Windows Update service, so you should type in the following command:
net stop wuauserv
Once this is complete, you then need to rename the current SoftwareDistribtion Folder in the Windows directory. So, assuming your Windows is installed on the C: drive, you should then type in this command and press enter:
ren c:\windows\softwaredistribution sd.old
This will rename the folder to sd.old in your C:\Windows folder – you can later delete this folder once you are happy everything is working to save you some disk space but it is not critical that you delete this folder if you do not want to.
The final part of the fix is to restart the Windows Update service. To do this, you should type in the following command and press enter:
net start wuauserv
Once this has restarted, you should now notice that the SoftwareDistribution Folder has been recreated – you should now restart your computer and you should notice that it reboots without any problems.
But wait – there is one last thing that you need to be aware of. As you have now completely removed the old SoftwareDistribution database, when you next run Windows Updates, it will not know that it has been run before and may through an error. Ignore this and just click “Check for Updates”. It will then check the machine, see that it has a number of updates and catch up with itself again.
But what if I work in IT and need to fix loads of machines?
Simple, you can either use Group Policy, create a batch file or use a system like Configuration Manager. For some clients we have pushed this fix out using a Configuration Manager Task Sequence and it works perfectly.
What if I have Windows 8 or Windows 10 and the stupid F8 key doesn’t take me to safe mode anymore?
Easy! simply click the link below to our guide on how to boot Windows 8 and Windows 10 into Safe Mode:
If you have any comments or questions about this, please feel free to leave us a message below.