Last active
October 17, 2019 18:35
-
-
Save johnt1000/03629a51ecaaf42b25b69964a1d42939 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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