Help Center
Choose product document...
Veeam Agent for Microsoft Windows 2.0 [Archived]
Configurator Reference

How To Automate Veeam Agent for Microsoft Windows Deployment and Configuration

You can automate the process of Veeam Agent for Microsoft Windows deployment and configuration with scripts and GPO. This scenario describes how to install Veeam Agent for Microsoft Windows in the unattended mode and configure the backup job and application settings with a command line script.

To deploy and configure Veeam Agent for Microsoft Windows:

  1. Prepare a configuration file with the backup job and application settings. To facilitate creation of the configuration file, set up the necessary backup job and application settings on a machine protected with Veeam Agent for Microsoft Windows, and export the configuration to a file with the Export command:

"C:\Program Files\Veeam\Endpoint Backup\Veeam.Agent.Configurator.exe" -export /f:C:\Veeam\configuration.xml

  1. For security purposes, Veeam Agent for Microsoft Windows does not export password values. If you use credentials in the configuration, for example, to store backups on a backup repository that requires authentication, open the configuration file and provide passwords in place of "Enter the password here" placeholders.

<TargetInfo Type="3" ServerName="srv06.tech.local" ServerPort="10001" RemoteRepositoryName="Default Backup Repository">
 <ServerCredentials UserName="c3J2MDZcQWRtaW5pc3RyYXRvcg==" Password="Enter the password here" />
</TargetInfo>

How To Automate Veeam Agent for Microsoft Windows Deployment and Configuration Important!

Depending on the encryption method you use, you may need to encrypt the password before you insert it in the configuration file. For more information, see Supported Encryption Methods and Encryption of User Credentials.

  1. Place the configuration file to a network shared folder accessible from the machine on which you plan to install and configure Veeam Agent for Microsoft Windows. In this example, the configuration file is placed to the \\fileserver01\Veeam folder.
  2. Place the Veeam Agent for Microsoft Windows setup file to a network shared folder accessible from the machine on which you plan to install and configure Veeam Agent for Microsoft Windows. In this example, the setup file is placed to the \\fileserver01\Veeam folder.
  3. Run the unattended install command to install Veeam Agent for Microsoft Windows on the machine. Veeam Agent for Microsoft Windows uses the following codes to report about the installation results:
  • 1000 — Veeam Agent for Microsoft Windows has been successfully installed.
  • 1001 — prerequisite components required for Veeam Agent for Microsoft Windows have been installed on the machine. Veeam Agent for Microsoft Windows has not been installed. The machine needs to be rebooted.
  • 1002 — Veeam Agent for Microsoft Windows installation has failed.
  • 1101 — Veeam Agent for Microsoft Windows has been installed. The machine needs to be rebooted.

You can use these codes to check if the product has been installed successfully or not:

\\fileserver01\Veeam\VeeamAgentWindows_2.0.0.700.exe /silent /accepteula

echo %ERRORLEVEL%

  1. If you want Veeam Agent for Microsoft Windows to operate in the Workstation or Server mode, place a license file to a network shared folder accessible from the machine on which you plan to install and configure Veeam Agent for Microsoft Windows. In this example, the license file is placed to the \\fileserver01\Veeam folder.
  2. Prepare a script that will install Veeam Agent for Microsoft Windows in the unattended mode, import the backup job configuration and application settings on the target machine. The sample script below performs the following actions:
  1. Installs a license and sets the product edition to Workstation.
  2. Imports backup job configuration and application settings from the configuration file.

@echo --- Installing Product License and Setting Edition ---

"C:\Program Files\Veeam\Endpoint\veeam.agent.configurator.exe" -license /f:"\\fileserver01\Veeam\veeam_agent_windows_license.lic" /w

@echo --- Importing Backup Job Configuration and Application Settings ---

"C:\Program Files\Veeam\Endpoint\veeam.agent.configurator.exe" -import /f:"\\fileserver01\Veeam\configuration.xml"

If the script executes successfully, Veeam Agent Configurator will report error code 0 for each command in the script.

Veeam Large Logo

User Guide

Configurator Reference