--- title: "Get-VEADRestoreSessionJob" description: "Returns active restore sessions started to perform operations with backed-up Microsoft Active Directory databases. Product: Veeam Backup & Replication Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/get-veadrestoresessionjob.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft Active Directory > Get-VEADRestoreSessionJob" dateModified: "2026-08-18" --- # Get-VEADRestoreSessionJob ## Short Description Returns active restore sessions started to perform operations with backed-up Microsoft Active Directory databases. **Product**: Veeam Backup & Replication **Product Edition**: Community, Standard, **Enterprise**, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VEADRestoreSessionJob [[-SessionId] ] [] ``` ## Detailed Description This cmdlet returns an array of active restore sessions started to perform operations with backed-up Microsoft Active Directory databases. ::: note - You can only get an array of restore sessions that are started in PowerShell. The cmdlet does not return restore sessions started in the Veeam Backup & Replication console. - The cmdlet only returns an array of restore sessions started within the same PowerShell session. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

SessionId

Specifies the session ID of the necessary restore session.

Guid

False

1

True (ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Output Object The cmdlet returns the [`VEADRestoreSessionJob`](veadrestoresessionjob.md)`[]` array that contains settings of restore sessions started to explore backed-up Microsoft Active Directory data and to perform operations with this data. ## Examples ::: example ### Example 1. Getting All Running Restore Sessions This command gets all running restore sessions started to perform operations with Microsoft Active Directory databases. Save the result to the `$session` variable to be able to use it with other cmdlets. ``` $session = Get-VEADRestoreSessionJob ``` ::: ::: example ### Example 2. Getting Specific Restore Session This example shows how to get a specific restore session started to perform operations with Microsoft Active Directory databases: ``` $session = Get-VEADRestoreSessionJob $session[3] ``` Perform the following steps: 1. Run the `Get-VEADRestoreSessionJob` cmdlet. Save the result to the `$session` variable. The cmdlet will return an array of active restore sessions. Note the ordinal number of the necessary restore session (in this example, it is the fourth restore session in the array). 2. Specify the necessary ordinal number of the restore session for the `$session` variable. In this example, it is the fourth restore session in the array. ::: ::: example ### Example 3. Getting Specific Restore Session with Session Id This command returns a restore session with a specific session ID. Save the result to the `$session` variable to be able to use it with other cmdlets. ``` $session = Get-VEADRestoreSessionJob -SessionId "132d5b9e-f309-4840-b58f-48cf13fc4c6e" ``` :::