Retrieve collection of Microsoft Windows Server 2003 VMs using PowerCLI

As the extended support end date looms nearer for Windows Server 2003 R2  or to be more precise 14/07/2015 (http://support.microsoft.com/lifecycle/search/default.aspx?alpha=Windows+Server+2003+R2) a number of you may still be running editions of this operating system.

An easy way to discover this using PowerCLI is to use the Get-VM cmdlet and filter the results where the ‘Guest.OSFullName’ property is like ‘Microsoft Windows Server 2003’

Get-VM | Where-Object {$_.Guest.OSFullName -like "Microsoft Windows Server 2003*"} | Select Name

Now you have a collection of VMs which you will probably be looking to upgrade before the extended support end date.

 

Advertisements

Leave a Reply

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 )

Google+ photo

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

Connecting to %s