Created
May 7, 2015 12:14
-
-
Save kayasax/0f77af387588161d0739 to your computer and use it in GitHub Desktop.
remotely uninstall software
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
Hi, | |
Please try below code: | |
$app = Get-WmiObject -Class Win32_Product | Where-Object { | |
$_.Name -match "Software Name" | |
} | |
$app.Uninstall() | |
Please use invoke-command above code to run them on the remote computer, in addition, the below article should be helpful: | |
Use PowerShell to Find and Uninstall Software | |
http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/14/use-powershell-to-find-and-uninstall-software.aspx | |
wershell: Uninstall software on remote computer | |
http://techibee.com/powershell/powershell-uninstall-software-on-remote-computer/1400 | |
Regards | |
Yan Li | |
TechNet Community Support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment