Last active
December 12, 2015 09:41
-
-
Save josy1024/d464770253fbab2642ed to your computer and use it in GitHub Desktop.
show old programs (installed before 2010) #sam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# author: [email protected] | |
# 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