Skip to main content

Register-AdcAccessRuleMode

SYNOPSIS

Register the processing mode for access rules on a specified object.

SYNTAX

Path

Register-AdcAccessRuleMode -Path <string> -Mode <string> [-PathMode <string>] [<CommonParameters>]

Category

Register-AdcAccessRuleMode -ObjectCategory <string> -Mode <string> [<CommonParameters>]

DESCRIPTION

Register the processing mode for access rules on a specified object. This is used by the AccessRule Component exclusively.

EXAMPLES

EXAMPLE 1

Register-AdcAccessRuleMode -Path 'OU=Company,%DomainDN%' -PathMode SubTree -Mode Additive

Configures the specified OU and all items beneath it to be in additive mode. Defined AccessRules will be applied if missing, but previously existing rules remain untouched.

PARAMETERS

-Mode

Determines, how the AccessRules are applied on the target object:

  • Constrained: All non-defined AccessRules will be removed.
  • Defined: Only non-defined AccessRules with identities for which a configuration exists on the object will be deleted.
  • Additive: Non-defined AccessRules on the targeted object will be ignored. By default, with no AccessRuleMode defined, all objects are considered to be in Constrained mode.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ObjectCategory

Instead of a path, define a category to apply the processing mode to. Categories are defined using Register-DMObjectCategory. This allows you to apply processing mode to a category of objects, rather than a specific path. With this you could apply a processing mode to all domain controller objects, for example.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Category
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Path

The path to the AD object to govern. This should be a distinguishedname. This path uses name resolution. For example %DomainDN% will be replaced with the DN of the target domain itself (and should probably be part of everyy single path).

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Path
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PathMode

Whether to only target a specific path or the target path and all items beneath it.

Type: System.String
DefaultValue: SingleItem
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Path
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.