How To Update All Sysinternals Tools Automatically

2

Whether you are an IT professionals or a Windows developer, you will find Sysinternals tools invaluable, helping you manage, troubleshoot and diagnose your Windows systems and applications. What’s more important, these tools regularly get updated by the team in Microsoft to keep them always ahead of the game. For example, both Sysmon and Procdump utilities are updated recently on April 28, 2016, and another one useful Sigcheck just got updated in February as well. But the problem is, it’s hard for us to keep our copy of their tools up-to-date. It would be nice if there is a better way than checking on their website regularly to find out what’s been updated.

Here is a PowerShell script that you may find very useful in this regard. It checks the tools from the Sysinternals website and downloads any newer tools if found any. The script is complete and ready to rock without any additional modules.

Download the script from the link above and update the folder path at the bottom to specify where the Sysinternals are saved on your computer.

Here is the original code in the script:

"Update started..."

Update-Sysinternalshttp -ToolsLocalDir "c:\pro\sys"

"The End"

Replace “c:\pro\sys” with the actual folder path in your case and you are good to go.

Windows PowerShell - 2016-05-10 23_41_59

You can manually run it either from PowerShell console, like the screenshot above, or Command Prompt window, running the following command, assuming the Update-Sysinternals.ps1 is saved on my desktop.

powershell.exe  -executionpolicy bypass -command "c:\Users\kent\Desktop\Update-Sysinternals.ps1"

Command Prompt - 2016-05-10 23_49_09

You can also use the script to download all Sysinternals tools from scratch without going to their website. Just make sure you have the folder that saves these tools ready before running the script.

And of course, you can add it in the Task Scheduler to have it run in schedule automatically.

SHARE

2 COMMENTS

  1. I dont think this is an update script.
    powershell.exe -executionpolicy bypass -command “C:UsersgasDesktopUpdate-Sysinternals.ps1”
    and all the tools will be downloaded in c:prosys ( if the folder exist else do nothing…)

    You cant schedule this to run weekly or monthly, as it will do nothing if folder exists.
    If folder does exists, it will do nothing as well.
    Will only work if empty folder exists?
    What is the real purpose of this?

    • Thanks for the info about not updating when the folder exists. I tested the code manually with or without the folder existence and it worked in both cases, so I assumed it should work fine in the task scheduler.

      Anyway, I guess it’s still useful in a way that it updates all the tools in the suite automatically. If it doesn’t update when the folder exists, it’s easy to purge the folder before running the script in the scheduler.

LEAVE A REPLY

Please enter your comment!
Please enter your name here