Get-CMActiveDirectorySite

Get-CMActiveDirectorySite

Gets Configuration Manager sites that publish data to AD DS.

Syntax

Parameter Set: SearchByName
Get-CMActiveDirectorySite [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByForestId
Get-CMActiveDirectorySite -ForestId <String[]> [ <CommonParameters>]

Parameter Set: SearchByForestName
Get-CMActiveDirectorySite -ForestFqdn <String[]> [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMActiveDirectorySite -Id <String[]> [ <CommonParameters>]

Detailed Description

The Get-CMActiveDirectorySite cmdlet gets one or more Microsoft System Center 2012 Configuration Manager sites that are configured to publish site information to Active Directory Domain Services (AD DS). You can get System Center 2012 Configuration Manager sites that publish site data to AD DS by using an identifier or a fully qualified domain name (FQDN).

Parameters

-ForestFqdn<String[]>

Specifies an array of fully qualified domain names that identify AD forests. The FQDN provides a path to an AD forest.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ForestId<String[]>

Specifies an array of IDs that identify AD forests.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Id<String[]>

Specifies an array of identifiers of Active Directory forest objects that contain Active Directory sites.

Aliases

SiteId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of FQDNs of Active Directory forest objects that contain Active Directory sites.

Aliases

ADSiteName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get an Active Directory site

This command gets the Active Directory sites that are configured to publish site information.

PS C:\> Get-CMActiveDirectorySite

Get-CMActiveDirectoryForest