Posted on

Fix Windows Update errors

Open Start, type: CMD
Right click CMD
Click Run as administrator

Type each of the following then hit Enter

taskkill /f /fi "SERVICES eq wuauserv" (Do this multiple times)
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
rmdir C:\Windows\SoftwareDistribution\DataStore
rmdir C:\Windows\SoftwareDistribution\Download

When complete, hit Enter, then restart, then try updating again.

If that does not work..

1. Open Start, type: CMD
Right click CMD
Click Run as administrator

Type each of the following then hit Enter

Run these codes:

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

After running these commands, check if your issue is fixed.

Posted on

How to remove a windows computer from wsus updating

check if you are using wsus

First you need to check if the computer is updating via the wsus server.

Run Powershell as Administrator and run these commands :

$MUSM = New-Object -ComObject "Microsoft.Update.ServiceManager".

$MUSM.Services.

Check the output : if you are reading Windows Server Update Service
it’s the signal that source of updates is a wsus server.

Remove wsus from computer client

Run regedit.

Sarch for the folder

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\

Delete the entire folder WindowsUpdate.

Run services

restart windows update service.

You can repeat the test of the first part to check if wsus has been removed from the client.