Uninstall app with PowerShell
Run this to uninstall app from Windows.
I always put this script in a GPO which runs during Windows logoff, because of a forced reboot during uninstall.
I always put this script in a GPO which runs during Windows logoff, because of a forced reboot during uninstall.
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
$app = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -match "name of app here spaces are allowed"} | |
if ($app) {$app.Uninstall()} |
Kommentarer
Send en kommentar