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.
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"
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.