Set-​CM​Active​Directory​Forest

Changes Active Directory forest properties in Configuration Manager.

Syntax

Set-CMActiveDirectoryForest
   [-AddPublishingSite <IResultObject[]>]
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-EnableDiscovery <Boolean>]
   [-ForceWildcardHandling]
   -ForestFqdn <String>
   [-PassThru]
   [-PublishingPath <String>]
   [-RemovePublishingSite <IResultObject[]>]
   [-UserName <String>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMActiveDirectoryForest
   [-AddPublishingSite <IResultObject[]>]
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-EnableDiscovery <Boolean>]
   [-ForceWildcardHandling]
   -Id <UInt32>
   [-PassThru]
   [-PublishingPath <String>]
   [-RemovePublishingSite <IResultObject[]>]
   [-UserName <String>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMActiveDirectoryForest
   [-AddPublishingSite <IResultObject[]>]
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-EnableDiscovery <Boolean>]
   [-ForceWildcardHandling]
   -InputObject <IResultObject>
   [-PassThru]
   [-PublishingPath <String>]
   [-RemovePublishingSite <IResultObject[]>]
   [-UserName <String>]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-CMActiveDirectoryForest cmdlet changes values for an Active Directory forest object in Microsoft System Center Configuration Manager. You can edit the description, enable or disable discovery, and specify a fully qualified domain name (FQDN) and publishing path. You can specify an Active Directory forest object by ID or FQDN, or you can supply the Active Directory forest object itself.

Active Directory Forest Discovery requires a global account to discover or publish to untrusted forests.

Examples

Example 1: Change the description of an Active Directory forest

PS C:\> Set-CMActiveDirectoryForest -Id "16777217" -Description "AD Forest 01"

This command changes the description of an Active Directory forest that has the ID 16777217 to AD Forest 01.

Required Parameters

-ForestFqdn

Specifies the FQDN of a Configuration Manager object.

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

Specifies an array of IDs of Configuration Manager objects. You can find the identifier value in the ForestID property of an Active Directory forest.

Type:UInt32
Aliases:ForestId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies an Active Directory forest object in Configuration Manager.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-AddPublishingSite

{{Fill AddPublishingSite Description}}

Type:IResultObject[]
Aliases:AddPublishingSites
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for an Active Directory forest object.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-EnableDiscovery

Specifies whether to discover Active Directory sites and subnets. You must configure an Active Directory Forest Discovery method before you use this parameter. The default value is $False.

Type:Boolean
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
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

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

Specifies one or more Configuration Manager sites that publish site information to an Active Directory forest. You can use a comma-separated list in quotation marks to specify more than one site.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemovePublishingSite

{{Fill RemovePublishingSite Description}}

Type:IResultObject[]
Aliases:RemovePublishingSites
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserName

{{Fill UserName Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False