I was wondering if it is possible to get the name of the currently running anti-virus within windows (xp/7/8) commandline? I could use the tasklist commando to view all running processes, but it would also be handy to know if it is possible to just return the name (not the full path per se) of the active anti-virus.
Answer
If you are using an anti-virus package that properly reports into Windows' Security Centre you should be able to get its name via WMI.
This will return a list of all installed AV products from the local machine:
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
Note: I only tested this on Windows 7, so I'm not sure if it will work on XP as-is (should work on Vista+ though).
Comments
Post a Comment