How do I reset Windows Update using Powershell?

Windows Updates can often consistently fail to install with a number of different errors. The best or only solution to resolve a consistently reoccurring error is to remove the Windows Updates Cache and history. Essentially forcing a resync.

Use the PowerShell code below below to perform the reset in PowerShell ISE.

net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc


Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak

net start bits
net start wuauserv
net start appidsvc
net start cryptsvc

Leave a Reply

Your email address will not be published. Required fields are marked *