Set-CMActiveDirectoryForest

Changes Active Directory forest properties in Configuration Manager.

Syntax

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

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
Required:True
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
Required:True
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
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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