Getting Started

Veeam Backup & Replication comes with the PowerShell extension — a snap-in to Microsoft Windows PowerShell. The Veeam Backup PowerShell snap-in allows you to do almost all operations that are available in the user interface. Keep in mind that actions performed with PowerShell have the same force as actions performed via Veeam Backup & Replication: for example, if you delete a job with a PowerShell script, the job will be removed from the Veeam Backup & Replication database, and you will not be able to undo changes.

Requirements

Supports Windows PowerShell version 2.0 or later.

Note:

We recommend that you use Windows PowerShell version 4.0 as more reliable for performing actions with Veeam PowerShell cmdlets.

Starting Veeam PowerShell Sessions

You can run the Veeam PowerShell sessions from the Veeam backup server (locally) or from a remote machine. The remote machine must have the Veeam Backup & Replication Console installed. The Veeam PowerShell component is installed by default as a part of the Veeam Backup & Replication or the Veeam Backup & Replication Console.

You can open the PowerShell console from the Veeam Backup & Replication main menu: in the main menu, select Console > PowerShell. In this case, the Veeam PSSnapIn is added automatically.

You can run Veeam PowerShell commands from any Windows PowerShell session, for example from the Windows PowerShell console installed on your machine. To start the session, do the following:

Add the Veeam PSSnapIn to get access to the Veeam Backup & Replication cmdlets library. Run the following command: