Windows ClamAV Context menu Scan and Generate HTML report with Virus references
This tool integrates ClamAV with Windows Explorer's right-click context menu, allowing you to scan any file or folder and generate a professional-looking HTML report with VirusTotal links and signature info. You can use CLAMAV like any other commericial anticirus scanning tool.
-
ClamAV for Windows
- Install to:
C:\Program Files\ClamAV
- Download: https://www.clamav.net/downloads NOTE: If you install in a different location make path changes accordingly in the .reg file and in .ps1 file
- Install to:
-
Ensure the following files are present:
C:\Program Files\ClamAV\clamscan.exe
C:\Program Files\ClamAV\clamdscan.exe
C:\Program Files\ClamAV\freshclam.exe
C:\Program Files\ClamAV\clamd.conf
C:\Program Files\ClamAV\freshclam.conf
- Update virus definitions using: "C:\Program Files\ClamAV\freshclam.exe"
- Extract the contents of
clamav_scan_tool.zip
to:
C:\Program Files\ClamAV
├── clamav_scan.bat
├── clamv_context_menu.reg
├── scan.ps1
└── assets
├── clean.png
└── virus.png
└── file.png
- If you are not using standard installation
- Make changes to path in the files clamav_context_menu.reg and scan.ps1 accordingly
- Doubleclick on clamav_context_menu.reg file and install into registry in enabling the context menu
- copy assets folder to Desktop Thats it you are ready to enjoy the ClamAV in windows like any other Antivirus program
- Create or open a file named
clamav_context_menu.reg
with the following contents:
🚀 How to Use
Right-click any file or folder
Click "Scan with ClamAV"
A PowerShell window opens, showing scan progress
After scan completes:
An HTML report will be saved on your Desktop
If threats are found, the report includes:
File path
Signature name
SHA256 hash
VirusTotal and ClamAV signature links
❓ Troubleshooting
No scan results?
Ensure ClamAV is installed and virus definitions are up to date.
HTML report missing?
Check if PowerShell has permission to write to your Desktop.
Review console for errors.
Slow scans?
Avoid clamscan.exe; prefer clamdscan.exe.
Avoid scanning entire C:\ drive unless necessary.
** Sample output **