Starting PowerShell Sessions from Windows PowerShell
You can run Veeam Exploreres cmdlets from the Windows PowerShell or Windows PowerShell ISE command-line shell. In this case, you must:
- Add the Veeam PowerShell snap-in into the PowerShell console beforehand.
For more information on the Veeam PowerShell snap-in, see the Getting Started section of the PowerShell Reference.
- [For Windows PS 2.0 and lower] Manually import all related PowerShell modules into active memory of your machine.
For more information on modules that can be installed with Veeam Explorers, see Getting started.
Using Veeam Explorer Cmdlets for Backups and Replicas Created with Veeam Backup & Replication
To use Veeam Explorers cmdlets for Veeam Backup & Replication:
- Start a PowerShell session on a machine that has the Veeam Backup & Replication solution or the Veeam Backup for Microsoft Office 365 Console component installed.
- Run the Add-PSSnapin cmdlet to add the Veeam PowerShell snap-in.
- Run the Connect-VBRServer cmdlet to connect to a local or remote Veeam backup server.
To learn how to connect to a Veeam backup server, see the Connecting to Veeam Backup Server section in the Veeam PowerShell Reference.
- Run the Import-Module cmdlet to import the necessary PowerShell module. For example, to import all Veeam Explorer modules, run the following commands:
Import-Module Veeam.Exchange.PowerShell Import-Module Veeam.Sharepoint.PowerShell Import-Module Veeam.Oracle.PowerShell Import-Module Veeam.SQL.PowerShell |
Using Veeam Explorers Cmdlets for Backups Created with Veeam Backup for Microsoft Office 365
To use Veeam Explorer cmdlets to manage application items backed up with Veeam Backup for Microsoft Office 365, perform the following steps:
- Start a PowerShell session on a machine that has the Veeam Backup for Microsoft Office 365 PowerShell installed.
- Run the Import-Module cmdlet to import the Veeam.Archiver.PowerShell module.
- Run the Import-Module cmdlet to import the necessary PowerShell module. For example, to import all Veeam Explorer modules, run the following commands:
Import-Module Veeam.Exchange.PowerShell Import-Module Veeam.Sharepoint.PowerShell Import-Module Veeam.Oracle.PowerShell Import-Module Veeam.SQL.PowerShell |
- Connect to a local or remote Veeam Backup for Microsoft Office 365 server.
To learn how to connect to a Veeam Backup for Microsoft Office 365 server, see the Connecting to Veeam Backup for Microsoft Office 365 section of the PowerShell Reference.