Clear Software Distribution

While you do not want to touch this folder under normal conditions, you may need to empty its contents should you find that your system’s Datastore and the Download folder have got de-synchronized, resulting in your Windows Updates not working properly. 

It is generally speaking safe to delete the contents of the Software Distribution folder, once all files required by it have been used for installing Windows Update. Even if you delete files otherwise, they will get automatically downloaded. If you were to delete the folder itself, it will get automatically re-created and the required WU components downloaded automatically.

However, this data store also contains your Windows Update History files. If you delete them you will lose your Update history. Moreover, the next time you run Windows Update, it will result in a longer detection time.

Copy and past the fallowing in to a text file and rename it to  Clear_SoftwareDistribution.bat Run it by right clicking and selecting to run as administrator. It stops necesery services and deletes the content of the Software disribution folder for a refreshed windows update. After deleting the folder the system will reboot.

SC Config “WUAUServ” Start= disabled
SC config “Bits” start= disabled
sc stop “bits”
sc stop “WUAUServ”
del %windir%\SoftwareDistribution\Datastore*.*
Sc Config “Wuauserv” Start= Auto
sc config “bits” start= auto
Shutdown -r -f -t “00”

george