Tag: Sysinternals

PowerShell PackageManagement Add PackageSource

How to install SysInternals using PowerShell Package Management

I already made a post in April 2014 where Microsoft announced the first preview of the Windows Management Framework 5.0. At this time, the Windows Management Framework V5 Preview came with a module called OneGet, which allowed you to install and manage packages. In the latest versions, the name from OneGet changed to PackageManagement. With Windows 10, you can now make use of this module. This helps you to install software and features. This can also be used to install Sysinternals using PowerShell.

The Sysinternals web site was created in 1996 by Mark Russinovich to host his advanced system utilities and technical information. Whether you’re an IT Pro or a developer, you’ll find the utilities to help you manage, troubleshoot, and diagnose your Windows systems and applications.

Packagemanagement PowerShell Commands

By default you get the PowerShell Gallery as a source for Packages, the first thing you can do is add the chocolatey Repository to your Package Sources:

Register-PackageSource -Name chocolatey -ProviderName Chocolatey -Location http://chocolatey.org/api/v2/

After you have added Chocolatey, you can search for the Packages you want to use. In my case, I want to install SysInternals using the following command:

Find-Package -Name Sysinternals

After you found your Package you can also install this Package using the following command:

Find-Package -Name Sysinternals | Install-Package

PowerShell PackageManagement Add PackageSource

After Package Manager is finished downloading and unpacking the zip file you can find it here:

C:\Chocolatey\lib\sysinternals.2015.07.20\tools

SysInternals

So if you like Sysinternals and PowerShell as much as I do, this is the way to go and helps you to get started very quickly. I hope this gives you an idea of how you can install the SysInternals tools using PowerShell.



Install Sysinternals from PowerShell

Install Sysinternals from PowerShell via OneGet

Microsoft just announced the Windows Management Framework 5.0 Preview. The Windows Management Framework V5 preview adds some cool new feature called OneGet.

OneGet is a new way to discover and install software packages from around the web. With OneGet, you can:
  • Manage a list of software repositories in which packages can be searched, acquired, and installed
  • Search and filter your repositories to find the packages you need
  • Seamlessly install and uninstall packages from one or more repositories with a single PowerShell command

As I did some tests this is perfect to install new software packages very easily. So I started with one of my favorite tools called Sysinternals Suite.

Install Sysinternals from PowerShell

First I have check if there was a Sys internals Package available by using:

 
Find-Package Sysinternals

This checks online from different sources if there is a package available. After that I installed the package by using:

 
Find-Package Sysinternals | Install-Package

So this is really easy and guess what, it does not just work for Microsoft Software, there is a lot more of third party Software which can be installed with OneGet. So make sure you checkout the Windows Management Framework 5.0 Preview to get the new OneGet cmdlets.