If you wish to build ClamAV from source using Visual Studio 2015, please head over to the Win32 ClamAV Build Instructions located in our source release materials on ClamAV.net and on GitHub.
Important: Installing ClamAV using the Installer will require Administrator privileges.
ClamAV-0.101.4.exe
and select Run as administrator
. You may receive a warning message along the lines of "Windows protected your PC". Select More info
and then select Run anyway
.I accept the agreement
and click Next
.Next
again. If you've removed a previous installation of ClamAV, you may receive the prompt "The folder ... already exists...". If you do, select Yes
.Install
.Finish
.powershell
but DO NOT press Enter
. Right-click on Windows PowerShell
at the top of the menu and select Run as administrator
. Your computer may warn you Do you want to allow this app to make changes to your device?
Click Yes
.Verify that the prompt in the PowerShell window looks like this:
PS C:\WINDOWS\system32>
In the Adminstrator PowerShell window, enter the following to navigate to the ClamAV install directory:
cd "c:\program files\clamav"
Continue on to "First Time Set-Up" below...
clamav-0.101.4-win-x64-portable
directory."Open PowerShell window here"
. If that option doesn't appear, try again.Continue on to "First Time Set-Up"...
In the PowerShell window, perform the following tasks:
Run:
copy .\conf_examples\freshclam.conf.sample .\freshclam.conf
Run:
write.exe .\freshclam.conf
WordPad will pop up. Delete the line that says "Example". Save the file and close WordPad.
Before you can start the ClamAV scanning engine (using either clamd
or clamscan
), you must first have ClamAV Virus Database (.cvd) file(s) installed in the appropriate location on your system. The default location for these database files is C:\Program Files\ClamAV\database, the database directory of your ` (in Windows).
Continuing in the PowerShell window:
Run:
.\freshclam.exe
You are now ready to perform scans with ClamAV. If you using the portable install package, you may now copy the entire clamav-0.100.1-win-x64-portable
directory to the computer(s) you wish to scan.
Run this to scan the files in the current directory:
.\clamscan.exe .
This will scan the current directory. At the end of the scan, it will display a summary. If you notice in the clamscan output, it only scanned something like 60 files, even though there are more files in subdirectories. By default, clamscan will only scan files in the current directory.
Run this to scan all the files in the current directory:
.\clamscan.exe --recursive .
Run this to scan ALL the files on your C: drive, it will take quite a while. Keep in mind that you can cancel it at any time by pressing Ctrl-C
:
.\clamscan --recursive C:\
For more information on ways you can use clamscan, run:
.\clamscan.exe --help
clamd
You may have noticed that clamscan
takes a while to get started. This is because it loads the signature database each time you start a scan. If you require faster scanning of individual files, you will want to use clamd
with clamdscan
instead.
Continuing in the PowerShell window:
Run:
.\clamd.exe
The application will take a moment to load and then appear to hang, but it is in fact waiting for scanning commands from clamdscan
.In the second PowerShell window, you can now run clamdscan
much the same way you did with clamscan
above.
.\clamdscan.exe .