Created
June 26, 2019 23:25
-
-
Save heyseus1/41a4aa12ecb4a896a53d82815c8c0ca4 to your computer and use it in GitHub Desktop.
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
''' | |
put the windows machine name in the hostname variable. | |
replace %APPPLICATION GOES HERE% with app you wish to uninstall. | |
uninstalls can cause a reboot be sure to only run this outside of a production state. | |
''' | |
$hostname = 'Computer names here', 'Computer names here' | |
$APP = Get-WmiObject -Class win32_product -ComputerName $hostname -Filter "Name like '%APPPLICATION GOES HERE%'" | |
echo $APP | |
$APP.Uninstall() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment