TestimoX

API Reference

Command

Get-ADXSites

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Replication.SiteInfoEx

Lists AD sites with optional subnets and NTDS Site Settings options.

Examples

Authored help example

Example 1: All sites with domain controllers


Get-ADXSites
        

Example 2: Sites with attached subnets


Get-ADXSites -WithSubnets | Select-Object Name,Subnets
        

Example 3: Sites with NTDS Site Settings options


Get-ADXSites -WithOptions | Select-Object Name,Options
        

Example 4: Sites without domain controllers


Get-ADXSites -NoDcOnly
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-ADXSites [-Forest <string>] [-NoDcOnly] [-WithOptions] [-WithSubnets] [<CommonParameters>]
#

Parameters

Forest string optionalposition: namedpipeline: false
Forest DNS name to query. Defaults to the current forest when omitted.
NoDcOnly SwitchParameter optionalposition: namedpipeline: false
Returns only sites that have no domain controllers.
WithOptions SwitchParameter optionalposition: namedpipeline: false
Includes NTDS Site Settings options in the output.
WithSubnets SwitchParameter optionalposition: namedpipeline: false
Includes site subnets in the output.

Outputs

ADPlayground.Replication.SiteInfoEx