Install SysInternals Suite using PowerShell INF Script

This PowerShell Script will help you in installing SysInternals Suite. This script was created by Michael Murgolo (Senior Consultant, Microsoft Services) with his TechNet publication on “New Elevation PowerToys for Windows Vista”  He has released few updated scripts for this specific INF File Installer, on 27th October.

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 $hashStartMenuPrograms and $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 is disabled on the System. Open the PowerShell Command Line and run the following command.

Set-ExecutionPolicy Unrestricted.



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
policy?
[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 Vista“.

Source.

Posted by on , in Category Windows with Tags
Shyam aka “Captain Jack” is a Microsoft MVP alumnus and a Windows Enthusiast with an interest in Advanced Windows troubleshooting. Suggestions made and opinions expressed by him here are his personal one's and not of his current employers. He blogs at captaindbg.com.

2 Comments

  1. Veljko

    Use simple bat file “DownLoad SysInternals.bat” in same folder where is ps1 file
    ;————————————————————————-
    ;Download SysInternals.bat
    PowerShell -ExecutionPolicy Unrestricted -File New-SysinternalsSuiteInstaller.ps1
    ;pause
    ;————————————————————————-

  2. Veljko

    Add
    Bat_To_Exe_Converter and make exe file “DownLoad SysInternals.exe”

    Home – http://www.f2ko.de/programs.php?lang=en&pid=b2e
    DL – http://www.f2ko.de/downloads/Bat_To_Exe_Converter.zip

Leave a Reply

Your email address will not be published. Required fields are marked *


4 + 1 =