ClamAV is a free, open-source antivirus engine that runs on Windows, but it is not a typical click-and-forget consumer antivirus. The official Windows build is a command-line scanner with an optional on-access daemon, so you install it, update its virus definitions, and run scans from a terminal or schedule them yourself. Most people searching for it want either a free second-opinion scanner or a way to check files on a Windows machine without paying for a subscription, and both are reasonable uses.

The detail most people get wrong is that ClamAV on Windows does not install a tray icon that quietly protects you in the background the way commercial suites do. Its real-time protection exists, but it is a separate component you must configure, and it is generally less polished on Windows than on Linux. Treat it as a scanner first and a background shield second.

What ClamAV Actually Installs on a Windows PC

The Windows package gives you a small set of tools rather than one big application. Knowing what each piece does prevents the confusion that follows a first install.

The core is clamscan, the command-line scanner. You point it at a file, a folder, or a whole drive, and it reports what it finds. A second tool, freshclam, is the updater; it downloads the virus signature databases that make scanning meaningful. The third piece is clamd, a background service that can watch files as they are written and read, which is what provides on-access protection. A small client, clamdscan, talks to that service.

If you only ever run clamscan, you have an on-demand scanner and nothing more. That is fine for checking a downloaded file or a USB stick, but it will not stop anything from running between scans. The background service is what changes that, and it needs a configuration file edited by hand before it will start.

Installing and Updating the Signature Database

Download the Windows installer from the official ClamAV project site and run it. The installer places the program files and a sample configuration in a program directory, and it typically offers to add the install folder to your system path. Accept that option so you can call the tools from any command prompt.

Before your first scan, update the definitions. Open Command Prompt as administrator and run freshclam. It downloads the main and daily databases, which together are a few hundred megabytes, so the first run takes a while on a slow connection. Later runs only fetch changes and finish in seconds to a minute or two.

Two things commonly go wrong here. If freshclam reports a permission error, it is because the database folder is protected; running the prompt as administrator resolves it. If it reports that the mirror is unavailable, wait and retry, since the public mirrors occasionally rate-limit heavy use. You can also run freshclam on a schedule using Windows Task Scheduler so definitions stay current without you remembering.

Running a Scan From the Command Line

The basic command is clamscan followed by a path. Running clamscan C:\Users\YourName\Downloads scans that folder and prints a line for each infected file, then a summary. Add -r to recurse into subfolders, which you almost always want.

Useful switches change what the scan does and how much it reports:

SwitchEffectWhen to use it
-rScans subfoldersAny folder scan
-iPrints only infected filesLarge drives where the clean list is noise
--removeDeletes detected filesOnly after you have reviewed what was found
--log=file.txtWrites results to a fileKeeping a record of a full-drive scan

A full system scan of a drive with hundreds of thousands of files can take anywhere from 20 minutes on a fast machine with an SSD to well over an hour on a mechanical drive. The scanner reads every file, so the drive speed matters more than the processor. Scan your user folders first; that is where downloads and temporary files accumulate.

Turning On Real-Time Protection With the Service

On-access scanning requires editing the configuration file that ships with the install, usually named clamd.conf. You need to set the path to the database, the path to a log file, and the local socket or TCP port the service should listen on. Then register and start the service from an administrator prompt using the service control commands, and confirm it is running.

Once the service is up, clamdscan sends scan requests to it and returns results much faster than clamscan, because the database is already loaded in memory. The on-access part watches configured directories and scans files as they are accessed.

Be realistic about the trade-off. Real-time scanning adds a delay to every file open in the watched folders, and on Windows the configuration is fiddly enough that many users run ClamAV purely as an on-demand scanner alongside their main protection. Menu and file names can differ between releases, so check the sample configuration comments rather than assuming a path.

Where ClamAV Fits and Where It Does Not

The most common misconception is that ClamAV replaces Windows Security or a paid suite. It does not, and running two real-time scanners at once can slow a machine and cause conflicts.

The correct fact is that ClamAV is best used as a second opinion. Its database is strong on malware that spreads through email, documents and web servers, which is why it is widely used on mail gateways and file servers. It is weaker at catching brand-new Windows threats that rely on behaviour rather than a known signature, which is the area where commercial engines invest heavily.

Practical uses on a Windows PC include scanning a downloaded installer before running it, checking a USB drive you were handed, and verifying an archive of files you are about to share. For those jobs it is free, transparent about what it found, and needs no account.

If a scan reports a detection, do not delete immediately. Note the file name and the signature it matched, then check whether the file is something you deliberately installed. False positives happen, particularly with packed installers and small utilities, and the log entry tells you which signature fired so you can look it up. Quarantine by moving the file to a separate folder first, and only remove it once you are satisfied it is unwanted.

Keeping Definitions Current and Scans Scheduled

An antivirus scanner is only as good as its last update. Set freshclam to run daily through Task Scheduler, at a time the machine is usually on, and check the log occasionally to confirm it succeeded. Schedule a scan of your downloads and user folders weekly, and a full drive scan monthly if you handle a lot of files from outside sources.

Watch the summary line each run: it reports how many files were scanned and how many were infected. A scan that suddenly reports far fewer files than usual usually means a path was mistyped or a folder was skipped, not that the drive got cleaner. Keeping the log file makes that comparison possible.