Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey all, I wrote a PoSH script that searches an FTP site and downloads specific zip files. In the process, I use AVG-free to run a scan on the zip files, before and after they are decompressed.

Now I am ready to put this sucker into production, on an assigned Windows 2003 Std server. The problem is AVG-free does not support this OS and won't install. Are there any other command-line AV tools out there? The current solution that my company uses (Symantec AV) does not support command-line usage. I want to avoid having an active "AV shield" which will simply monitor a working folder. I want instant results and return codes, which I use to generate alert e-mails.

Thanks in advance

share|improve this question
up vote 2 down vote accepted

ClamAV has a port that works on Windows. It's an open-source on-demand scanner, made to be scripted (it's meant for plugging into things like UNIX mail servers so it can be easily called from a script to scan incoming and outgoing files). It may fit your needs perfectly here.

share|improve this answer
Its no longer supported or updated however. – xeon Aug 14 '09 at 19:33
What? When did that happen?? I'll have to check the links...(we decommissioned the Linux mail filter we were using awhile back, but Clam was a prominent contender for AV for that specific purpose...) – Bart Silverstrim Aug 14 '09 at 19:36
The software works however -- and can use the new virus def's. – SirStan Aug 14 '09 at 19:37
There are apparently other efforts for Win32 (or run under cygwin). See: – Bart Silverstrim Aug 14 '09 at 19:40
Thanks guys. I got the port (ClamWin) and it seems to be working great. I just need to get the return codes implement it into my PoSH script. Thanks! – Kai Aug 14 '09 at 20:58

NOD32 is an excellent scanner and has command-line options. Not free, though...

share|improve this answer


share|improve this answer

If you are willing to try scripting your needs in Linux then ClamAV would be a great choice... You could setup a Linux VM to run the task.

share|improve this answer

Personally, I prefer McAfee - they have a command line scanning utility - but you may need to buy a minimum number of Enterprise licenses (10 at most, I expect) to get it.

share|improve this answer

Metascan is available with up to 8 built in antivirus engines, or simply as as core service/api to integrate your own separately licensed antivirus application. Check it out...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.