--- title: "Get-VEADADContainer" description: "This cmdlet returns Active Directory containers that are available on the target server. Product: Veeam Backup & Replication Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet returns an array o" canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/get-veadadcontainer.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft Active Directory > Get-VEADADContainer" dateModified: "2026-08-18" --- # Get-VEADADContainer ## Short Description This cmdlet returns Active Directory containers that are available on the target server. **Product**: Veeam Backup & Replication **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VEADADContainer [[-Session] ] -Server -Credential [-UseSSL] [-Id ] [-Name ] [] ``` ## Detailed Description This cmdlet returns an array of Active Directory containers that are available on the target server. You can restore Active Directory objects to these containers. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Credential

Specifies credential records that Veeam Explorer for Microsoft Active Directory will use to connect to an LDAP server.

Accepts the PSCredential object. To get this object, run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet.

PSCredential

True

Named

False

Id

Specifies an ID of the container. Veeam Explorer for Microsoft Active Directory will get the container with the specified ID.

Guid

False

Named

False

Name

Specifies a name of the container. Veeam Explorer for Microsoft Active Directory will get the container with the specified name.

String

False

Named

False

Server

Specifies DNS name or IP address of the target server. Veeam Explorer for Microsoft Active Directory will return Active Directory containers available on this server.

String

True

Named

False

Session

Specifies a restore session initiated to perform operations with Microsoft Active Directory databases.

Accepts the VEADRestoreSessionJob object. To get this object, run the Get-VEADRestoreSessionJob cmdlet.

VeadRestoreSessionJob

False

0

True (ByValue)

UseSSL

Defines that Veeam Explorer for Microsoft Active Directory will establish a secure connection to the target server.

If you provide this parameter, Veeam Explorer for Microsoft Active Directory will connect over TLS to the target server. Otherwise, Veeam Explorer for Microsoft Active Directory will connect to the target server using a non-secure connection.

SwitchParameter

False

Named

False

`` 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 [`VEADADContainer`](veadadcontainer.md)`[]` array that contains Active Directory containers available on the target server. ## Examples ::: example ### Example 1. Getting All Containers from Target Server This example shows how to get all containers that are available on the target server. ``` $credentials = Get-Credential Get-VEADADContainer -Server 172.16.8.223 -Credential $credentials ``` Perform the following steps: 1. Run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet to create a credential object. Enter credentials that will be used to connect to the target server. Save the result to the `$credentials` variable. 2. Run the `Get-VEADADContainer` cmdlet. Specify the `Server` parameter value. Set the `$credentials` variable as the `Credential` parameter value. ::: ::: example ### Example 2. Getting Specific Container from Target Server by Container ID This example shows how to get the `0559b025-2c09-4f10-a6b5-3f497166d895` container from the target server. ``` $credentials = Get-Credential Get-VEADADContainer -Server 172.16.8.223 -Credential $credentials -Id 0559b025-2c09-4f10-a6b5-3f497166d895 ``` Perform the following steps: 1. Run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet to create a credential object. Enter credentials that will be used to connect to the target server. Save the result to the `$credentials` variable. 2. Run the `Get-VEADADContainer` cmdlet. Specify the following settings: - Specify the `Server` parameter value. - Set the `$credentials` variable as the `Credential` parameter value. - Specify the `Id` parameter value. ::: ::: example ### Example 3. Getting Specific Container from Target Server by Container Name This example shows how to get a container from the target server with a specific container name. ``` $credentials = Get-Credential Get-VEADADContainer -Server 172.16.8.223 -Credential $credentials -Name "Domain Controllers" ``` Perform the following steps: 1. Run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet to create a credential object. Enter credentials that will be used to connect to the target server. Save the result to the `$credentials` variable. 2. Run the `Get-VEADADContainer` cmdlet. Specify the following settings: - Specify the `Server` parameter value. - Set the `$credentials` variable as the `Credential` parameter value. - Specify the `Name` parameter value. ::: ::: example ### Example 4. Getting Specific Container from Specific Restore Session This example shows how to get a container from the target server within a specific restore session. ``` $session = Get-VEADRestoreSessionJob $credentials = Get-Credential Get-VEADADContainer -Session $session[0] -Server 172.16.8.223 -Credential $credentials ``` Perform the following steps: 1. Run the [`Get-VEADRestoreSessionJob`](get-veadrestoresessionjob.md) cmdlet. Save the result to the `$session` variable. The cmdlet will return an array of restore sessions. Note the ordinal number of the necessary restore session. In this example, it is the first restore session in the array. 2. Run the [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) cmdlet to create a credential object. Enter credentials that will be used to connect to the target server. Save the result to the `$credentials` variable. 3. Run the `Get-VEADADContainer` cmdlet. Specify the following settings: - Set the `$session` variable as the `Session` parameter value. Specify the necessary restore session. - Specify the `Server` parameter value. - Set the `$credentials` variable as the `Credential` parameter value. ::: ## Related Commands - [``Get-Credential``](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.6) - [`Get-VEADRestoreSessionJob`](get-veadrestoresessionjob.md)