Share This Post

Clearing the Windows Update Software Distribution Folder

Clearing the Windows Update Software Distribution Folder

To remove failed updates (and allow the computer to boot correctly) you might sometimes need to clear the Software Distribution folder on certain failing computers. You can do that with the following, simple script (no PowerShell expertise required):

@echo off

net stop wuauserv
net stop bits
net stop cryptsvc

rd /s /q %systemroot%\System32\Catroot2

rd /s /q %systemroot%\SoftwareDistribution

net start wuauserv
net start bits
net start cryptsvc

 


Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

IT/Dev Connections

Share This Post

Leave a Reply