Yes, ClamAV runs on Windows, but it is a command-line tool, not a point-and-click antivirus like the ones you buy. It is open-source and free, made for detecting viruses, trojans, and malware, but it has no real-time protection, no right-click scanning, and no automatic quarantine by default. If you want a graphical interface, you need to install a separate program on top of it.
What ClamAV Actually Gives You on Windows
ClamAV scans files you tell it to scan, and it does that well. The core package installs a command-line scanner called clamscan and a daemon called clamd that runs in the background and waits for scan requests. You interact with it through a terminal window (Command Prompt or PowerShell), typing commands like clamscan C:\Users\YourName\Downloads to scan that folder.
What it does not do is protect you in real time. It will not watch files as they are downloaded, block a malicious script before it runs, or stop a virus from executing. It also will not clean or repair infected files on its own; it detects them and reports the path, and you decide what to delete or quarantine manually. For most home users, this makes ClamAV a second-opinion scanner rather than a primary defense.
If you are looking for this because you want a free, open-source antivirus for Windows, the more practical choice is usually the built-in Microsoft Defender, which already provides real-time protection. ClamAV is a better fit if you are a system administrator, a developer, or someone who needs to scan files on a server or check suspicious files without sending them to a cloud service.
How to Install ClamAV on Windows
ClamAV is not distributed as a simple installer like most Windows programs. You download a ZIP archive, extract it, and run it from the command line. The official source is the ClamAV website, which links to the latest stable release for Windows.
- Go to the ClamAV downloads page and download the Windows package (a
.zipfile). - Extract the ZIP to a folder such as
C:\ClamAV. The folder will containclamscan.exe,freshclam.exe, and other tools. - Open Command Prompt as Administrator (press the Start button, type
cmd, right-click Command Prompt, and choose “Run as administrator”). - Change to the ClamAV directory by typing
cd C:\ClamAV(adjust the path if you extracted elsewhere). - Before scanning, you must download virus definitions. Run
freshclam.exe. This fetches the latest signature database from ClamAV’s servers. The first download can take a few minutes depending on your connection.
If freshclam fails with a DNS or connection error, check that your firewall is not blocking it, and try again. You may also need to set a DNS setting in the configuration file, but for most users the default works.
Once definitions are downloaded, test the installation by scanning a small folder: clamscan.exe C:\Users\YourName\Documents. You should see a summary at the end showing how many files were scanned and how many infections were found.
Making ClamAV Usable: GUI Frontends and Path Setup
Typing the full path to clamscan.exe every time is tedious. You can add the ClamAV folder to your Windows PATH so that you can just type clamscan from any directory. To do this:
- Press the Start button, type “Edit environment variables for your account”, and open it.
- Select Path and click Edit.
- Click New and add the full path to your ClamAV folder (for example,
C:\ClamAV). - Click OK on all dialogs, then close and reopen your terminal window.
If you want a graphical interface, you have options. One is ClamWin, a separate open-source project that wraps ClamAV in a Windows-style GUI. ClamWin adds a system tray icon, scheduled scans, and right-click scanning, though it still lacks real-time protection. Another option is Immunet, which uses ClamAV’s engine alongside its own cloud-based detection, and does provide real-time protection. Both are free, but note that they are separate programs; you do not need to install the raw ClamAV package if you install ClamWin, because ClamWin includes its own copy of the engine.
If you prefer a more modern GUI, you can also run ClamAV inside the Windows Subsystem for Linux (WSL) and use a Linux frontend, but that is a heavier setup and not necessary for most users.
How to Run a Scan: Commands That Matter
The basic scan command is clamscan followed by a path. Here are the most useful variations:
- Scan a single file:
clamscan C:\path\to\file.exe - Scan a folder recursively:
clamscan -r C:\Users\YourName\Downloads - Scan the whole system:
clamscan -r C:\(this will take a long time, possibly hours, and may require administrator privileges to read all files). - Remove infected files automatically:
clamscan -r --remove C:\path(use with caution; it deletes files without asking). - Quarantine infected files instead of deleting:
clamscan -r --move=C:\Quarantine C:\path(the folder must exist first). - Scan and only show infected files:
clamscan -r --infected C:\path
The -r flag means recursive, so it goes through subfolders. Without it, ClamAV scans only the top level of a folder. The output shows each scanned file with OK or FOUND next to it, and the final summary tells you the total count.
If you get a message like ERROR: Can't open file, it usually means the file is locked by another program or you lack permission. Run the terminal as Administrator to reduce this. You can also add --exclude-dir="C:\Windows" to skip system folders that you do not want to scan, which speeds things up.
Updating Virus Definitions Automatically
ClamAV is only as good as its definitions. The freshclam tool downloads updates, but it does not run continuously by default. You have three ways to keep definitions current:
- Manual: Run
freshclam.exeyourself whenever you want to update. The first run downloads the full database; later runs download only changes, which take seconds. - Windows Task Scheduler: Create a basic task that runs
freshclam.exedaily. Open Task Scheduler, click “Create Basic Task”, set the trigger to Daily at a time your computer is on, and set the action to start the program. Point it toC:\ClamAV\freshclam.exe. Leave the “Start in” field as the ClamAV folder. - ClamWin: If you install ClamWin, it handles definition updates automatically in the background, which removes this hassle entirely.
If you scan with old definitions, you will miss new threats. A good habit is to run freshclam right before a scan, or rely on the scheduled task.
What to Do When ClamAV Finds a Threat
When ClamAV finds a file, it prints the path and the name of the detected virus, for example: C:\Users\You\file.exe: Win.Trojan.Agent-1 FOUND. That is all it does by default; it does not delete or move the file. You have to decide the next step.
The safest action is to move the file to a quarantine folder so it cannot be executed accidentally. Create a folder like C:\Quarantine, then run the scan with the --move option. After moving, you can inspect the file name and the detection name, and if you are certain it is not a false positive, delete it permanently.
False positives do happen, especially with old or uncommon software. If ClamAV flags a file you trust, check the detection name against ClamAV’s online virus database. If you cannot confirm it, upload the file to a multi-engine scanner like VirusTotal in your browser; that service runs the file through dozens of antivirus engines and shows you whether others also detect it. If only ClamAV flags it and the file is from a reputable source, it is likely a false positive.
Limitations You Should Know Before Relying on It
ClamAV is not a replacement for a full antivirus suite on a personal Windows machine. It has no real-time protection, no web or email filtering, no behavioral detection, and no ransomware rollback. It also cannot scan inside encrypted archives or files that are password-protected, and it does not scan memory or boot sectors.
For a home user, Microsoft Defender is already built into Windows 10 and 11, runs in real time, updates automatically, and is free. Running ClamAV alongside it is fine, but you do not need both for protection. ClamAV becomes useful when you want a second opinion on a specific suspicious file, when you are on a system without Defender (like a server), or when you need to scan files from a Linux or macOS machine that you have copied to Windows.
If you decide to use ClamAV as your main scanner, pair it with a scheduled scan at least weekly, keep definitions updated daily, and remember that it will not stop an infection from starting in the first place. For most people, the practical answer is: install ClamWin if you want a GUI, or use ClamAV from the command line if you are comfortable with terminals and need its specific features.