I reviewed Reset Windows Update Agent, a free script for Windows devices, back in 2015. The script provided Windows administrators with options to run select administrative tasks on the system the script was executed on.

The program was designed primarily to fix Windows Update related issues (hence the name) but administrators could run it to fix Winsock or delete temporary files in Windows as well.

The author of the script improved it since its initial release and the list of commands grew from nine in 2015 to 18 commands in 2018. The nine original options are all included and the new options increase the functionality of the script significantly.

A second look at Reset Windows Update Agent

https://cdn.ghacks.net/wp-content/up...ent-script.png

You can download the Reset Windows Update Agent script from the Microsoft Technet Gallery website. The script is compatible with Windows XP and newer versions of Windows including Windows 10 and Windows 10 Insider Preview versions.

You need to unpack the archive first; it has a size of just 8 Kilobytes and an unpacked size of 38 Kilobytes. You may want to read the readme first before you start the script. Note that you need to run it with elevated privileges.

Just right-click on ResetWUEng.cmd and select "run as administrator" to do so. I suggest you go through the script before you run it on your system to make sure it does what it is supposed to do. Also, it is recommended that you create a backup of the system before you use it to perform any actions.

A disclaimer is displayed on start that you need to accept. Once that is out of the way all 18 options are listed.

Here is the list of options:

  1. Open System Properties.
  2. Reset the Windows Update Components.
  3. Delete temporary files in Windows.
  4. Open Internet Explorer options.
  5. Run Chkdsk on the partition Windows is installed on.
  6. Run the System File Checker tool.
  7. Scan the image for component store corruption.
  8. Check the image for corruption or other issues.
  9. Perform repair operations automatically.
  10. Clean up superseeded components.
  11. Delete incorrect Registry values.
  12. Repair / Reset Winsock.
  13. Force Group Policy Update.
  14. Search for Windows Updates.
  15. Explorer other local solutions.
  16. Explorer other online solutions.
  17. Download Diagnostic Tools.
  18. Restart the PC.

While it is clear automatically what some options do, e.g. Open System Properties, it may not be clear what others such as "Delete incorrect Registry values" do.

The only option to find out is to open the script in a plain text editor and check the relevant parts of it to see what it does.

The temporary file cleaning part for instance uses the two commands del /s /f /q "%TEMP%\*.*" and
del /s /f /q "%SYSTEMROOT%\Temp\*.*" to remove files from system temp folders.

Some operations run lots of commands. If you select to reset Windows Update components, a series of commands is executed that include stopping services, killing tasks, deleting files, registering files again and more.

Closing Words

Administrators can run all the commands the script includes manually as well if they know them. The script speeds up the process as you just have to press a button and hit return on the keyboard to run the commands.