Configuration driven Active Directory management.
Register the processing mode for access rules on a specified object.
Register-DMAccessRuleMode -Path <String> [-PathMode <String>] -Mode <String> [<CommonParameters>]
Register-DMAccessRuleMode -ObjectCategory <String> -Mode <String> [<CommonParameters>]
Register the processing mode for access rules on a specified object. This is used by the AccessRule Component exclusively.
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.
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
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.