Script to identify installed anti-virus software

mattmcglone
mattmcglone used Ask the Experts™
on
I work in a 100+ user office that started out quite small.  My predecessors use a variety of different anti-virus applications over the years.  The result is many out of date computers.  I am trying to get a handle on who has what installed.  I was thinking a script of some kind that could run in the login script could identify who has what installed.  

Does anyone have a script, application or idea on how to accomplish this task?  

We are in a Windows 2008 R2 domain using a mix of WIndows XP Pro SP3 and Windows 7 SP1 computers.  
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Bill PrewTest your restores, not your backups...
Top Expert 2016
Commented:
Here are a couple of free tools that can scan your pcs and build a database of info, that you could then export or query.

http://www.snapfiles.com/get/aremoteinfo.html
http://www.spiceworks.com/

~bp

Author

Commented:
Snapfiles is out of date and doesn't work anymore nor does the publishers web site.

I installed Spiceworks but it doesnt identify software on any of the computers in the network.  The Community's fix for that is to disable Windows Firewall on all computers.  That won't work either.
Test your restores, not your backups...
Top Expert 2016
Commented:
FWIW I can download AdvancedRemoteInfo from SnapFiles, as well as the vendor site.  But not trying to push you into that.

If you do want to do something in the login scripts, you might try something like this:

wmic product get /format:csv>logfile.csv

Open in new window

The logfile.txt could be local to their system, and you pick it up later, or you could put it on a server centrally and gather them all there.  You could even name with their computer name and check if it exists so the collection only happens once, something like:

@echo off
set LogFile=\\sharename\folder\%COMPUTERNAME%.csv
if not exist "%LogFile%" (
    wmic product get /format:csv>"%LogFile%"
)

Open in new window

Just another approach for you to consider.

~bp

Author

Commented:
HI

Does Windows XP/VIsta/7 use a system variable of some kind, or script that you have - that checks to see if an anti-virus application is installed an up to date.  That is what I want to do - is check to see who has which antivirus applicaiton installed and record the information to a share or some other location.  
Bill PrewTest your restores, not your backups...
Top Expert 2016

Commented:
I believe there is a way, although the last time I looked at it, it seemed like it was fairly tricky to interpret some of the information.  To get some ideas take a look at:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/3c310bc1-b766-46d9-ad83-50e8f6f594da

http://blogs.msdn.com/b/alejacma/archive/2008/05/12/how-to-get-antivirus-information-with-wmi-vbscript.aspx?PageIndex=1#comments

~bp

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial