This is an archive version of the document. To get the most up-to-date information, see the current version.

Getting Started

In this article

    Veeam Backup & Replication comes with PowerShell extension — a snap-in to Microsoft Windows PowerShell 2.0. The Veeam Backup PowerShell snap-in allows you to do almost all operations that are available in the user interface.

    Veeam PowerShell cmdlets mirror actions you can perform via Veeam Backup & Replication UI. 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.

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

    1. To get access to the Veeam Backup & Replication cmdlets library, you need to add the PSSnapIn. Run the following command:

    PS C:\PS> Add-PSSnapin VeeamPSSnapin

    1. Connect to local or remote Veeam backup server. See Connecting to Veeam Backup Server.

    Getting Started Note:

    If your machine is running Microsoft Windows 2008, make sure that the Microsoft Windows PowerShell 2.0 is installed on your machine. To download Microsoft Windows PowerShell, use the following link: http://support.microsoft.com/kb/968929.

    In This Section