There is an antivirus package that exists on most of our machines that needs to be removed. I did not deploy this software and it was not deployed via GPO - it was installed manually by the previous administrator on each machine. So, I do not think I can remove this software now using Group Policy because it was not installed via Group Policy. It does come with an MSI installer though.
I believe that I could still uninstall this software via a startup script though, possibly by first checking to see that certain indicators of the software's existence are present and then by removing the software using an unattended uninstaller batch file.
Is this a safe way to go? Does anyone have any tips or tricks on uninstalling software via startup scripts?
ProductCode
of the MSI, a simple:msiexec /x {XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} /qn
should perform a silent uninstall, without any GUI. Replacexxx
with theProductCode
. Of course, this requires that the MSI was packaged correctly to perform uninstallation. If the specific product/version is not installed, the above will return 1619, but should do so nearly instantaneously -- Building logic to check for various installation configs may not be worth the effort, as opposed to just brute-uninstall.