Find-VBRADEntity

Short Description

Looks for Active Directory objects.

Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides the following parameter sets:

  • AllParameterSets (Default)

    Find-VBRADEntity -Domain <VBRADDomain> [-Root <VBRADEntity>] [-Recurse] [<CommonParameters>]

  • Id

    Find-VBRADEntity -Domain <VBRADDomain> [-Id <Guid[]>] [-Root <VBRADEntity>] [-Recurse] [<CommonParameters>]

  • Name

    Find-VBRADEntity -Domain <VBRADDomain> [-Name <String[]>] [-Root <VBRADEntity>] [-Recurse] [<CommonParameters>]

  • Type

    Find-VBRADEntity -Domain <VBRADDomain> [-Type <VBRADEntityType[]>] [-Root <VBRADEntity>] [-Recurse] [<CommonParameters>]

Detailed Description

This cmdlet looks for Active Directory objects.

You can use this cmdlet to search for Active Directory objects you plan to add to the scope of a protection group.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Domain

Specifies the Active Directory domain connection object.

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

VBRADDomain

True

Named

True (ByPropertyName, ByValue)

Id

Specifies the array of object IDs. The cmdlet will return objects with these IDs.

Guid[]

False

Named

True (ByPropertyName)

Name

Specifies the array of object names. The cmdlet will return objects with these names.

Note: Provide the value of the Active Directory name attribute. For Computer objects, the returned Name property will show the dNSHostName value.

String[]

False

Named

True (ByPropertyName)

Recurse

Defines that the cmdlet will look for objects from all child containers of the specified container.

SwitchParameter

False

Named

True (ByPropertyName)

Root

Specifies the container of objects. The cmdlet will look for objects in this container.

If omitted, the cmdlet will look for objects in the domain container.

Accepts the VBRADEntity object. To get this object, run the Find-VBRADEntity cmdlet.

VBRADEntity

False

Named

True (ByPropertyName)

Type

Specifies the array of object types:

  • Domain
  • Cluster
  • OrganizationUnit
  • Group
  • Folder
  • Computer

The cmdlet will return objects of these types.

VBRADEntityType[]

False

Named

True (ByPropertyName)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRADEntity

Examples

Find-VBRADEntityExample 1. Getting All Active Directory Objects

This example shows how to get all Active Directory objects.

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

Find-VBRADEntity -Domain $connection -Recurse

Perform the following steps:

  1. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  2. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Provide the Recurse parameter.

Find-VBRADEntityExample 2. Getting Active Directory Objects by Name

This example shows how to get Active Directory objects with names containing account.

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

Find-VBRADEntity -Domain $connection -Name *account* -Recurse

Perform the following steps:

  1. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  2. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Specify the Name parameter value. Provide the Recurse parameter.

Find-VBRADEntityExample 3. Getting Active Directory Objects from Container

This example shows how to get Active Directory objects from the Accounts container.

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

$root = Find-VBRADEntity -Domain $connection

$accounts = Find-VBRADEntity -Domain $connection -Root $root -Name Accounts

Find-VBRADEntity -Domain $connection -Root $accounts -Recurse

Perform the following steps:

  1. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  2. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Save the result to the $root variable.
  3. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Set the $root variable as the Root parameter value. Specify the Name parameter value. Save the result to the $accounts variable.
  4. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Set the $accounts variable as the Root parameter value. Provide the Recurse parameter.

Find-VBRADEntityExample 4. Getting Active Directory Objects by Type

This example shows how to get all Active Directory objects of the OrganizationUnit type.

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

Find-VBRADEntity -Domain $connection -Type OrganizationUnit -Recurse

Perform the following steps:

  1. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  2. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Set the OrganizationUnit option for the Type parameter. Provide the Recurse parameter.

Find-VBRADEntityExample 5. Getting Active Directory Objects by ID

This example shows how to get Active Directory objects by ID.

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

Find-VBRADEntity -Domain $connection -Id 3826d21c-0f7d-4c80-b5ef-b5568e967a6a, 85950671-5e3a-481f-8408-5af40de317c6

Perform the following steps:

  1. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  2. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Specify the Id parameter value.

Find-VBRADEntityExample 6. Getting Active Directory Object using Veeam PowerShell and Microsoft Active Directory Windows PowerShell

This example shows how to get an Active Directory object using both Veeam PowerShell and Microsoft Active Directory Windows PowerShell cmdlets.

$comp = Get-ADComputer SUPP-G3321

$compid = $comp.ObjectGUID

$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith

Find-VBRADEntity -Domain $connection -Id $compid

Perform the following steps:

  1. Make sure you have the Active Directory Windows PowerShell module installed. For more information, see Microsoft Docs.
  2. Run the Get-ADComputer to get the Active Directory computer. Save the result to the $comp variable.
  3. Use the ObjectGUID property of the $comp variable. Save the result to the $compid variable.
  4. Run the Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
  5. Run the Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Set the $compid variable as the Id parameter value.

Get-VBRADDomainCreates an object for connecting to Active Directory domain.

Page updated 2026-08-19

Page content applies to build 13.1.1.18