Get-VBRADForestDomainController
Short Description
Returns domain controllers for an Active Directory domain.
Applies to
Platform: VMware, Hyper-V
Product Edition: Veeam Universal License
Syntax
|
Get-VBRADForestDomainController -ADForestDomain <VBRADForestDomain> [<CommonParameters>] |
Detailed Description
This cmdlet returns domain controllers that belong to the specified Active Directory domain.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ADForestDomain |
Specifies the Active Directory domain for which to return domain controllers. |
Accepts the VBRADForestDomain object. To get this object, run the Get-VBRADForestDomain cmdlet. |
True |
Named |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRADForestDomainController[] object that contains information about the domain controllers within an Active Directory domain.
Examples
Getting Domain Controllers for Active Directory Domain
This example shows how to get all domain controllers for an Active Directory domain.
|
$forest = Get-VBRADForest $domain = Get-VBRADForestDomain -ADForest $forest Get-VBRADForestDomainController -ADForestDomain $domain |
Perform the following steps:
- Run the Get-VBRADForest cmdlet. Save the result to the $forest variable.
- Run the Get-VBRADForestDomain cmdlet. Set the $forest variable as the ADForest parameter value. Save the result to the $domain variable.
- Run the Get-VBRADForestDomainController cmdlet. Set the $domain variable as the ADForestDomain parameter value.
Related Commands