We purchased a networking and software solution for PCI compliance: TrustWave. We started to install the antivirus but realized that it was not required on the machines it was being installed on and wanted to install a different solution.
The program's attended uninstall works fine. It is the unattended install that is not very clean. While it supports a silent switch much of itself is left behind. I have scripted most of it but there is one part I am having issues with: Windows still sees the software as installed as an antivirus product. Looking at how to confirm this comes from WMI
Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct
I am having a hard time finding out how to wipe this information. Searching just leads me to solution about installing or removing the whole antivirus product which has already been done.
Is there a way to write to this namespace (or equivalent registry) specifically so that Windows forgets this has been installed? I realize this request could be seen as malicious.
Installing the other antivirus would most likely fix this issue but there are some machines that will be running without so this information would still be useful.
Never tested it, but it would be a script like this:
Code from here
I would think it would work, as the other code example follows the same format, like shown here but without a delete item in it.
A PowerShell equivalent would be
This could also be run remotely using the
-Computer
parameter.