Skip to content

Instantly share code, notes, and snippets.

@johnt1000
Last active October 17, 2019 18:35
Show Gist options
  • Save johnt1000/03629a51ecaaf42b25b69964a1d42939 to your computer and use it in GitHub Desktop.
Save johnt1000/03629a51ecaaf42b25b69964a1d42939 to your computer and use it in GitHub Desktop.
# https://sid-500.com/2018/04/02/powershell-how-to-get-a-list-of-all-installed-software-on-remote-computers/
# Get-CimInstance -ComputerName (Get-Content C:\Temp\Computer.txt) -ClassName win32_product -ErrorAction SilentlyContinue| Select-Object PSComputerName, Name, PackageName, InstallDate | Out-GridView
# (Get-ADComputer -Filter * -Searchbase "OU=Test,DC=sid-500,DC=com").Name | Out-File C:\Temp\Computer.txt | notepad C:\Temp\Computer.txt
# https://powershell.org/forums/topic/uninstall-software-remotely/
# $app = Get-WmiObject Win32_Product -computername "PC1" | where { $_.name -eq "softwarename" }
# $app.Uninstall()
Get-WmiObject win32_product -computername "NTB" | Select-Object Name, Vendor, Version | Out-GridView
$app = Get-WmiObject Win32_Product -computername "NTB" | where { $_.name -eq "Adobe AIR" }
$app.Uninstall()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment