Skip to content

danieltiamorim/clamav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clamav

Clamav configuration, update and scan.

  • "clamd.conf" and "freshclam.conf" are templates of configuration files of the Clamav Scanner Antivirus.
  • "clamscan.ps1" its an Powershell script file that can help to enable some tasks automatization, like:
    • Create a Scheduled Task at windows.
    • Update the Database
    • Scanning for Virus at "C:users"

Some steps are needed to make a good work:

  1. You need to install the Clamav using the GPO (Group Policy Object) of the AD (Active Directory):

Example: ad-install-clamav-msi

  1. Using the Active Directory at the Windows Server, you will send the config files and create the folders, to run Clamav. To do this may you need to create another GPO: image

    Now you can send the "clamd.conf" and "freshclam.conf" files to every endpoint at network. AD-FILES These Files are examples of the use of Clamav, you can change them at will. Feel free to make changes and some personalizations.

  2. The Powershell must to execute at the startup of the machines to do automatizated scannings on many endpoints possible, To do this you need to make this configuration in the GPO at the AD: powershell-clamav

Summary of Functionalities of the ".ps1":

  • Take off the execution restriction policy of scripts powershell;
  • Updates virus definitions (using freshclam).
  • Performs a scan (clamscan) on a specified directory (default: C:\Users).
  • Logs the results to a file (clamscan.log).
  • Create the Task Scheduled to make some scans every startup + some hours (you can adjust at will)
  • Turn on the execution restriction policy of scripts powershell;

Update 06/2025

  • Translated the code to English
    • I've made the entire original code in Portuguese Language, now its available to English to a better understading.
    • Made some fixing at the code about the comments and some identation

About

Clamav configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors