Just wanted to share a use-case here at my company. We check for antivirus using the vbscript:
strComputer = WScript.Arguments(0)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product where (Caption='Symantec Endpoint Protection')")
For Each objSoftware in colSoftware
wscript.echo objSoftware.Version
Next
The above script is launched from the Execute Local Process/Command submenu:
cscript /nologo C:toolsSymantecChecker.vbs $computer
We then can deploy Symantec to the machine by the Deployment menu and selecting their setup.exe.
We can then uninstall Symantec from the machine using Symantec’s SEPprep64.exe tool (with proper edits to the ini file), also fed to the Deployment menu.
Anyway, a quick three point punch from checking, adding, and removing Symantec Endpoint Protection remotely using BatchPatch. Thanks again for an awesome product.