Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active December 12, 2015 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josy1024/d464770253fbab2642ed to your computer and use it in GitHub Desktop.
Save josy1024/d464770253fbab2642ed to your computer and use it in GitHub Desktop.
show old programs (installed before 2010) #sam
# author: josy1024@gmail.com
# 2015_12_12
# show old programs: (installdate before 2010PS >
# source: https://gist.github.com/josy1024/d464770253fbab2642ed
# http://josy1024.blogspot.co.at/2015/06/automated-uninstall-of-old-programs.html
Get-WmiObject -Class Win32_Product -ComputerName . | Where-Object -FilterScript {$_.InstallDate -lt "20100000"} | Where-Object -FilterScript {$_.Name -NotLike "windows*"} | Where-Object -FilterScript {$_.Name -NotLike "Microsoft*"} | Where-Object -FilterScript {$_.Name -NotLike "AMD*"} | Where-Object -FilterScript {$_.Name -NotLike "google*"} | Where-Object -FilterScript {$_.Name -NotLike "7-zip*"} |Where-Object -FilterScript {$_.Name -NotLike ""} | Format-List -Property Name,InstallDate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment