Challenge
Veeam Backup & Replication allows you to perform the secure restore — scan machine data with antivirus software before restoring the machine to the production environment. The antivirus software that you plan to use for scanning backups is described in the AntivirusInfos.xml file. Ensure that it is properly configured.
The settings in the file are already predefined for the following antivirus software (see more details):
NOTE: If you are using other antivirus software, contact antivirus support to get the required properties. Mind that the antivirus software must support the command-line interface (CLI).
Cause
If you want to scan machine data with other antivirus software, add settings for this software to the antivirus configuration file. Mind that the antivirus software must support the command-line interface (CLI).Solution
- Browse to the mount server role and open the AntivirusInfos.xml file in the %ProgramFiles%\Common Files\Veeam\Backup and Replication\Mount Service folder.
- Add mandatory attributes:
- AntivirusInfo Name
- IsPortableSoftware
- ExecutableFilePath
- CommandLineParameters
- RegPath
- ServiceName
- ThreatExistsRegEx
- IsParallelScanAvailable
<AntivirusInfo Name='Windows Defender' IsPortableSoftware='false' ExecutableFilePath='%ProgramFiles%\Windows Defender\mpcmdrun.exe' CommandLineParameters='-Scan -ScanType 3 -File %Path% -DisableRemediation -BootSectorScan' RegPath='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend' ServiceName='WinDefend' ThreatExistsRegEx='Threat\s+information' IsParallelScanAvailable='false'> <ExitCodes> <ExitCode Type='Success' Description='No threats detected'>0</ExitCode> <ExitCode Type='Error' Description='Antivirus scan was completed with errors'>2</ExitCode> <ExitCode Type='Infected' Description='Virus threat was detected'>2</ExitCode> </ExitCodes> </AntivirusInfo>
- Add desired exit codes.
- Make sure the restore functionality works correctly.