What’s On My Machine?

Doing software installation is a common task for us Integration and Connected Systems folks, especially those who work with tools like BizTalk and the ESB Toolkit.  In many cases, it’s necessary to know what’s on your machine to make sure all the necessary prerequisites are there. 

My colleague, Randall McClure, inspired by this, pointed me to the following powershell script to get a complete list of all the software installed on a Windows system.

 First, create a variable to hold your output format so that it will be nice and pretty:

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Users\EdJones> $a = @{Expression={$_.Name};Label="Software Name";
>> width=65},
>> @{Expression={$_.InstallDate};Label="Date";width=15},
>> @{Expression={$_.Version};Label="Version";width=15},
>> @{Expression={$_.Vendor};Label="Vendor";width=40}

Then, run the following command to retrieve the list:

 PS C:\Users\EdJones> Get-WmiObject Win32_Product |
    Sort-Object InstallDate -Descending |
    Format-Table $a

The command above retrieves the list and arranges it in descending order by installation date.  Nice and pretty.  The image below is a sample of what I have:

Software List

About Ed Jones

Ed is a .NET and Integration architect for Avanade in the Twin Cities. Contact Ed

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: