Saturday, July 7, 2018

Reset Windows update component in Windows 10

In my work, I often have to reset Windows Update agent on client workstations whenever the computers have problem to install the patches.

The easy way to do it is by running the Windows Update troubleshooter in Windows 10. This tool will scan for errors and recommend fixes for errors found on your computer.

1. Click Start menu and search for Troubleshoot.


2. In the Troubleshoot window, click Windows Update and click Run the troubleshooter

3. You might be prompt to run it with administrator right. Use administrator right to scan and fix the errors. 



While the steps above is easy to do, however if you are dealing with multiple computers and you have to do it remotely, this is not an efficient way. 

As you see this troubleshooter is built-in the Windows 10 image and you can find the fix package in this directory: C:\Windows\diagnostics\system\WindowsUpdate.

However, one setback to this is it is not possible to execute it remotely. So if you plan to use PSExec or SCCM to initiate the troubleshooter remotely, it will not work.

There are many scripts available in the internet created by IT experts and one that I use is created by  Shawn Brink and available here:

https://answers.microsoft.com/en-us/windows/forum/windows_10-update/how-toreset-windows-update-components-in-windows/14b86efd-1420-4916-9832-829125b1e8a3

There are 2 scripts - one for Windows 10 and another one for Windows 7 and 8.

The script will reset the Windows Update component and re-register the Windows Update files.
Try it out. It could be useful when you are dealing with multiple computers.







No comments:

Post a Comment

SCCM: Stopping mandatory reboot

Recently I had an issue where a system that is running a critical data restore is schedule for a mandatory reboot after a patch installation...