[Review]: Veeam Backup & Replication – PowerShell Extension

Introduction Veeam Backup & Replication – PowerShell Extension


PowerShellVeeam Backup & Replication – PowerShell Extension or Veeam Backup and Replication PowerShell Toolkit is 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.

You can use it for managing anything in backup server faster than GUI and prepare reports for your BOSS!

Requirements


You can run Veeam Backup & Replication PowerShell Extension on PowerShell 2 and later.

PowerShell 4.0 is recommended for Veeam Backup & Replication 9.5.

How To Run Veeam Backup & Replication – PowerShell Extension


If you are working on your backup server directly, you can access to PowerShell via Veeam Backup & Replication Console:

Veeam BR PowerShell Extension - Console

You can install Veeam Backup & Replication – PowerShell Extension on other Windows machine and connect to remote backup server. Find and execute BPS_x64.msi from the “Backup” folder found on the Veeam Backup & Replication installation media.

Veeam BR PowerShell Extension - InstallationVerifying Veeam Backup & Replication – PowerShell Extension


If you want to know, which version of Veeam Backup & Replication – PowerShell Extension is installed on your machine, you can run the below command on your PowerShell console:

Get-PSSnapin -Registered

Find the below lines in result:

Name : VeeamPSSnapIn
PSVersion : 4.0
Description : This is a PowerShell snap-in that includes the Veeam's cmdlet.

PSVersion shows your VeeamPSSnapIn version. In my case, version is 4.0.

Connect To Backup Server


Connect-VBRServer is a cmdlet that provides a session for connecting to a backup server.

Here is some example for Connect-VBRServer:

To connect as a current user:

Connect-VBRServer [-Server <string>] [-Port <int>]  [<CommonParameters>]

To connect using credentials:

Connect-VBRServer -User <string> -Password <string> [-Server <string>] [-Port <int>]  [<CommonParameters>]

To connect using PSCredential:

Connect-VBRServer -Credential <pscredential> [-Server <string>] [-Port <int>]  [<CommonParameters>]

After connecting to the backup server, you can run your PowerShell commands.

Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *