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:
- You need to install the Clamav using the GPO (Group Policy Object) of the AD (Active Directory):
-
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:

Now you can send the "clamd.conf" and "freshclam.conf" files to every endpoint at network.
These Files are examples of the use of Clamav, you can change them at will. Feel free to make changes and some personalizations.
-
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:

- 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;
- 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