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 for Microsoft Office 365 solution comes with three modules:

    • Veeam.Archiver.PowerShell for Veeam Backup for Microsoft Office 365
    • Veeam.Exchange.PowerShell for Veeam Explorer for Microsoft Exchange
    • Veeam.SharePoint.PowerShell for Veeam Explorer for Microsoft SharePoint and Veeam Explorer for Microsoft OneDrive

    These modules include sets of related PowerShell cmdlets that allow you to perform backup, configuration and recovery operations. Modules are installed by default as part of Veeam Backup for Microsoft Office 365 and Veeam Explorers respectively.

    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:

    Import-Module Veeam.Archiver.PowerShell

    1. Import the Veeam.Exchange.PowerShell module to get access to Veeam Explorer for Microsoft Exchange cmdlets. Run the following command:

    Import-Module Veeam.Exchange.PowerShell

    1. Import the Veeam.SharePoint.PowerShell module to get access to Veeam Explorer for Microsoft SharePoint and Veeam Explorer for Microsoft SharePoint cmdlets. Run the following command:

    Import-Module Veeam.SharePoint.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

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.