Skip to content

Instantly share code, notes, and snippets.

@heyseus1
Created June 26, 2019 23:25
Show Gist options
  • Save heyseus1/41a4aa12ecb4a896a53d82815c8c0ca4 to your computer and use it in GitHub Desktop.
Save heyseus1/41a4aa12ecb4a896a53d82815c8c0ca4 to your computer and use it in GitHub Desktop.
'''
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