Help Center
Choose product document...
Veeam Backup for Microsoft Office 365 2.0 [Archived]
PowerShell Reference

Getting Started

Veeam Backup for Microsoft Office 365 is a comprehensive solution that allows you to back up and recover your Microsoft Office 365 organizations data including Microsoft OneDrive for Business. This guide is a reference guide for Microsoft PowerShell cmdlets and operations available with them.

Veeam Backup for Microsoft Office 365 comes with a module for Microsoft PowerShell  — a command-line shell designed especially for system administrators. Veeam.Archiver.PowerShell module is installed by default as part of Veeam Backup for Microsoft Office 365 and allows you to perform the following operations:

  • Install a license file or get information on the current license.
  • Browse, add, modify and remove Veeam Backup for Microsoft Office 365 infrastructure components.
  • Browse, add, modify and remove Veeam Backup for Microsoft Office 365 organizations.
  • Browse, add, modify, remove, start, stop, enable and disable Veeam Backup for Microsoft Office 365 backup jobs.

Mind that actions performed with PowerShell have the same force as actions performed in user interface. For example, if you delete a job with a PowerShell script, the job will be removed from the Veeam Backup for Microsoft Office 365 database. You will not be able to undo changes.

Requirements

Windows PowerShell version 2.0 or later is supported.

Getting Started Note:

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

Starting Veeam Backup for Microsoft Office 365 PowerShell Sessions

You can run Veeam Backup for Microsoft Office 365 PowerShell sessions locally or from a remote machine. The remote machine must have the Veeam Backup for Microsoft Office 365 console installed.

You can open the PowerShell console in Veeam Backup for Microsoft Office 365 or in Microsoft Windows.

PowerShell Sessions in Veeam Backup for Microsoft Office 365

To open the PowerShell console in Veeam Backup for Microsoft Office 365, select PowerShell in the main menu. In this case, you will be able to run PowerShell sessions and perform actions with Veeam Backup for Microsoft Office 365 cmdlets without importing modules into active memory. Veeam Backup for Microsoft Office 365 does it automatically.

PowerShell Sessions in Microsoft Windows

If you have Windows PowerShell version 2.0, you must first import Veeam Backup for Microsoft Office 365 PowerShell modules into active memory to access these modules in your PowerShell session. To start the session, you will need to perform the following steps:

  1. Import the Veeam.Archiver.PowerShell module to get access to Veeam Backup for Microsoft Office 365 cmdlets. Run the following command:

PS C:\PS> Import-Module Veeam.Archiver.PowerShell

 

Getting Started Note:

If you have Windows PowerShell version 3.0 or later, modules with PowerShell cmdlets will be imported automatically right after you type any Veeam Backup for Microsoft Office 365 PowerShell cmdlet in Windows PowerShell command line.

  1. Connect to a local or remote Veeam Backup for Microsoft Office 365 server. See Connecting to Veeam Backup for Microsoft Office 365 Server.

In This Section

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference