--- title: "Copy-VBRAntivirusConfigurationFile" description: "This cmdlet allows you to distribute the antivirus configuration file among mount servers in your backup infrastructure. Veeam Backup & Replication will copy the specified antivirus configuration file to selected mount servers and place the file..." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/copy-vbrantivirusconfigurationfile.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Secure Restore > Copy-VBRAntivirusConfigurationFile" dateModified: "2026-08-19" --- # Copy-VBRAntivirusConfigurationFile ## Short Description Copies the antivirus configuration file. **Platform**: VMware, Hyper-V **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Copy-VBRAntivirusConfigurationFile -TargetType [-SelectedServer ] -ConfigurationFilePath [] ``` ## Detailed Description This cmdlet allows you to distribute the antivirus configuration file among mount servers in your backup infrastructure. Veeam Backup & Replication will copy the specified antivirus configuration file to selected mount servers and place the file to the `%Program Files%\Common Files\Veeam\Backup and Replication\Mount Service` folder. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ConfigurationFilePath

Specifies the path to the antivirus configuration file.

String

True

Named

False

SelectedServer

For the SelectedServer option.

Specifies the mount server. Veeam Backup & Replication will copy the configuration file to that mount server.

CHost

False

Named

False

TargetType

Specifies the options to distribute the antivirus configuration file among mount servers. You can specify the following options:

  • AllMountServers — use this option if you want to copy the configuration file to all mount servers in your backup infrastructure.
  • SelectedServer — use this option if you want to copy the configuration file to the particular mount server.

VBRCopyAntivirusConfigFileTargetType

True

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Copying Antivirus Configuration File The example shows how to copy the antivirus configuration file to the selected mount server. ``` $mounthost = Get-VBRServer -Name "storage" Copy-VBRAntivirusConfigurationFile -ConfigurationFilePath "C:\Program Files\Common Files\Veeam\Backup and Replication\Mount Service\AntivirusInfos.xml" -SelectedServer $mounthost -TargetType SelectedServer ``` Perform the following steps: 1. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$mounthost` variable. 2. Run the `Copy-VBRAntivirusConfigurationFile` cmdlet. Specify the following settings: - Specify the `ConfigurationFilePath` parameter value. - Set the `$mounthost` variable as the `SelectedServer` parameter value. - Set the `SelectedServer` option for the `TargetType` parameter. ::: ## Related Commands [`Get-VBRServer`](get-vbrserver.md)