Helping people with computers... one answer at a time.
There are two types of virus scans: continuous or periodic. Which and how many you need and how often they're needed depends on your situation.
Do you have more than one anti-virus program running at any one time, to stop newly arriving viruses, or do you just have them ready to run when you've got a virus and want to clean it out?
•
Virus scanners are best used to prevent viruses from ever reaching your machine, but you raise a very good issue that most folks don't realize.
There are two types of scans, and each has a place and a purpose.
•
Real-Time
The most common type of scan is the continuous "real-time" scan that watches for viruses in data as it arrives (and possibly as it leaves) your computer. I say it's the most common because it's enabled in the default configuration of most anti-virus programs.
Using a real-time scan, the anti-virus software will hook into your network connection and simply watch the data coming and going to and from your machine, watching for viruses. If it identified one then it takes appropriate action and alerts you.
Typically, real-time scans are considered the safest, since viruses are caught before they've ever had a chance to run on your machine. Some will also prevent email-borne viruses from arriving in your inbox as well.
It's extremely important that there be only one real-time scanner running at a time, as they can conflict with each other resulting in false positives, missed viruses, program crashes or worse. But fortunately one real-time scanner is all you need.
On-Demand
With an "on-demand", or scheduled scan the virus program simply examines the contents of your hard disk, reading the contents of every file looking for viruses. Naturally, reading everything on your hard drive can take a little time.
Free virus scans are often on-demand. You initiate a scan, and a while later the scanner tells you whether or not your machine is infected and whether or not it was able to remove the infections.
When an on-demand scan is complete no further scanning is performed until the next on-demand scan. It runs, scans everything, and then finishes.
Which?
Most anti-virus programs include both types of scans, real-time and on-demand. Most will enable the continuous real-time scans by default, but also offer some form of scheduler so that you can automatically run the on-demand scans.
I typically advise having a couple of additional on-demand scanners ready (or at least selected) when it comes time to track down a particularly nasty virus that perhaps your regular virus scanner misses.
For what it's worth, I actually don't run a real-time scan, since I'm fairly well protected in other ways and find that real-time scans can occasionally interfere with the performance of my machine. They've also been known to cause other anomalous behaviour - most commonly with email. I do, however, run an on-demand scan which is scheduled every night.
Updates
Regardless of what type of scan you run, it's critical that you make sure that the database of virus definitions your scanner uses is as up-to-date as possible. Most anti-virus programs include a scheduler for that as well, and I make sure that mine is configured to download the latest database every night.
Whether you run a real-time scanner or a nightly or other periodic scan, remember that it's critical to do something. The days of being blissfully ignorant about viruses is long past.
(This is an update to an article originally published in December, 2004.)
Article C2250 - March 6, 2010
A on demand scanner nightly may be the answer for older computers. All these newer real time programs hogs the memory and speed the older computers do not have. May be a good choice if just visit Yahoo, Gmail and other mainline sites. If I did banking or credit cards I would do after the nightly scan only!
Posted by: Jack at March 9, 2010 1:26 PMI actually don't run a real-time scan since I'm fairly well protected in other ways
would be nice if you could have explained what the other ways were
10-Mar-2010
Posted by: robert at March 9, 2010 3:56 PM
I have a friend never uses antivirus installed on its PC.
Posted by: Enrique Grajales at March 9, 2010 6:37 PMhe only runs every 2 or 3 days avasoft adware free and its machines work clean soft full processor speed during long time (years)
I did not see NOD32 on the list, is it still among the top 2 as in 2006 with you Leo? Thank you, I so appreciate your site.
Posted by: De Lys at March 14, 2010 7:45 AMI don't think your article answers the question you posed as a title, to wit: "When do I actually need to run a virus scan?"
I was hoping to get some authoritative guidance here on how often an on-demand scan needs to be done when I employ real-time scans 24/7? If the answer is weekly, then I figure I can stop my nightly on-demand scans and reduce the associated wear and tear on my hard drives not to mention the electricity it takes so spin those drives and touch every file on all my hard drives by a factor of 86%. Your answer to this, Leo, may help millions of us make our hard drives last longer and also help save the planet by reducing unnecessary energy consumption.
Thanks for your articles - I've learned a lot on your site.
13-Aug-2010
Posted by: Jeffrey Smith at August 9, 2010 7:50 AM