This PowerShell Script will help you in installing Windows Sysinternals Suite. This script was created by Michael Murgolo (Senior Consultant, Microsoft Services) with his TechNet publication on “New Elevation PowerToys for Windows” He has released few updated scripts for this specific INF File Installer.
The PowerShell script (New-SysinternalsSuiteInstaller.ps1) attached below does the following:
- Downloads the Sysinternals Suite web page and parses out the Updated date.
- Creates a subfolder below the script folder named with the Updated date.
- Creates an Extracted folder under the date folder.
- Downloads the Sysinternals Suite Zip file in the date folder.
- Extracts the contents of the Zip file to the Extracted folder.
- Generates Install_SysinternalsSuite.inf in the Extracted folder.
The INF file has entries to create Start Menu shortcuts for the graphical programs and help files. You can change the list of programs and help files that will have shortcuts by changing the entries in the
$hashStartMenuHelp hashtable variables in New-SysinternalsSuiteInstaller.ps1.
You might receive this while running the PS Script:
“File C:\Elevation\New-SysinternalsSuiteInstaller.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.At line:0 char:0
This happens when scripts are disabled on the System.
Open the PowerShell Command Line and run the following command-
You’ll get a warning:
“Execution Policy Change.
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
[Y] Yes [N] No [S] Suspend [?] Help (default is “Y”):”
Type in Y and Hit Enter. Close the PS Window then run
New-SysinternalsSuiteInstaller.ps1 script again.
Download : New-SysinternalsSuiteInstaller.zip
You can the see TechNet publication on “New Elevation PowerToys for Windows“.