Remove-CMActiveDirectoryForest

Removes an Active Directory forest object from Configuration Manager.

Syntax

Remove-CMActiveDirectoryForest
      [-InputObject] <IResultObject>
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMActiveDirectoryForest [-Name]  [-Confirm] [-DisableWildcardHandling] [-Force]
 [-ForceWildcardHandling] [-WhatIf] []

Description

The Remove-CMActiveDirectoryForest cmdlet removes an Active Directory forest object from Microsoft System Center Configuration Manager. You can specify an Active Directory forest by using the ID property or the fully qualified domain name (FQDN), or you can supply the Active Directory forest itself.

Examples

Example 1: Remove an Active Directory forest object by ID

PS C:\> Remove-CMActiveDirectoryForest -Id "16777217"

This command removes an Active Directory forest object that has the ID 16777217.

Required Parameters

-InputObject

Specifies an Active Directory forest object in Configuration Manager.

Type:IResultObject
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name
Type:String
Aliases:ForestFqdn
Required:True
Position:0
Default value:None
Accept pipeline input:False
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
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
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
-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