Add Remove Programs

Let we start with just a simple script that will retrieve all the software that has been installed on the computer.

$arr = @()
$reg = @()
$reg = Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall
$reg += Get-ChildItem HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

$reg |%{
      $tmp = Get-ItemProperty $_.pspath      
      $arr += "$($tmp.DisplayName)  $($tmp.DisplayVersion)"
}
cls
$arr | Sort-Object | Select -uniq

The START

Welcome to my new blog. My name is Rob Looman and Technical Consultant specialized in IT infrastructure. Currentrly I’m working at KPN Consulting where I help several companies with their IT challanges. I created this new blog where I can post interresting infomation about y work. Main focus points of this blog are:

  • PowerShell v2.0
  • Microsoft System Center Configuration Managaer 2012
  • Windows Manament Instrumation
Write-Host "Enjoy this blog"