Category filter
Scripts to Uninstall Enterprise apps on Windows
Administrators might have to remove custom apps once their purpose is served or if they become outdated. They can deploy scripts via Hexnode to uninstall such enterprise apps.
Batch Script
To uninstall .msi and .exe files,
1 |
wmic product where "name like '%%product_name%%’'" call uninstall/nointeractive |
E.g., To remove the enterprise app 7-Zip,
wmic product where "name like “’7%%'" call uninstall/nointeractive
Powershell Script
To uninstall .msi and .exe files,
1 2 |
$app=Get-WmiObject –Class Win32_Product –Filter “Name like ‘%product_name%’” $app.Uninstall() |
E.g., To remove the enterprise app 7-Zip,
$app=Get-WmiObject –Class Win32_Product –Filter “Name like ‘%7%’”
$app.Uninstall()