Get-CMActiveDirectorySite

Gets Configuration Manager sites that publish data to AD DS.

Syntax

Get-CMActiveDirectorySite
   -ForestFqdn <String[]>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMActiveDirectorySite
   -ForestId <String[]>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMActiveDirectorySite
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMActiveDirectorySite
   [-Name <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

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

Examples

Example 1: Get an Active Directory site

PS C:\> Get-CMActiveDirectorySite

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

Required Parameters

-ForestFqdn

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

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForestId

Specifies an array of IDs that identify Active Directory forests.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id

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

Type:String
Aliases:SiteId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

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

Type:String
Aliases:ADSiteName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False