Wednesday, November 25, 2009

How to get installed application list using powershell

[Updated 2/18/2012]

A very sophisticated powershell script to get installed softwares is available at  http://techibee.com/powershell/powershell-script-to-query-softwares-installed-on-remote-computer/1389

If you want to see the installed applications in powershell, here you go.

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString

You can format output the way you want. One nice option is, using Out-Gridview cmdlet which enables to you sort, search the applications from a GUI window. Make sure that you are running powershell V2 to get cmdlet.

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString | Out-GridView
Source [PowerShell Blog]

Tuesday, November 24, 2009

Resources for learning PowerShell

http://code.msdn.microsoft.com/

How to verify the powershell Version

Let me start with basics.

Do you want to know which version of powershell was installed on your machine? Stop and looking at the add-remove-programs and take help from this small cmdlet.

PS C:\> Get-host

Name : ConsoleHost
Version : 1.0.0.0
InstanceId : 576e6370-f68a-41f8-967f-a58d9746450c
UI : System.Management.Automation.Internal.Host.InternalHostUserI
nterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy

PS C:\>

or simply..


PS C:\> Get-host | select version

Version
-------
1.0.0.0

PS C:\>

Now start rocking with easy of administration.

Welcome to PowerShell World!!

Powershell has made the life of Windows Administrator very easy and triggered new evaluations in Windows Administration. Now PowerShell has become an integral part of current and upcoming Windows Operating Systems and Windows Products. This raises the necessity of learning PowerShell scripting for system administrators. This blog is here to help the Sysadmins by providing examples scripts for their daily use.

Happy Scripting..,