Active Directory Management Framework

Configuration driven Active Directory management.

Register-DMAccessRuleMode

SYNOPSIS

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

SYNTAX

Path

Register-DMAccessRuleMode -Path <String> [-PathMode <String>] -Mode <String> [<CommonParameters>]

Category

Register-DMAccessRuleMode -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-DMAccessRuleMode -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

-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: String
Parameter Sets: Path
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PathMode

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

Type: String
Parameter Sets: Path
Aliases:

Required: False
Position: Named
Default value: SingleItem
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-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: String
Parameter Sets: Category
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Mode

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

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES