Configuration driven Active Directory management.
Registers a group membership assignment as desired state.
Register-DMGroupMembership -Name <String> -Domain <String> -ItemType <String> -Group <String> [-Mode <String>]
[-GroupProcessingMode <String>] [-ContextName <String>] [<CommonParameters>]
Register-DMGroupMembership -Group <String> -Empty <Boolean> [-Mode <String>] [-GroupProcessingMode <String>]
[-ContextName <String>] [<CommonParameters>]
Registers a group membership assignment as desired state. Any group with configured membership will be considered “managed” where memberships are concerned. This will causse all non-registered memberships to be configured for purging.
Get-Content $configPath | ConvertFrom-Json | Write-Output | Register-DMGroupMembership
Imports all defined groupmemberships from the targeted json configuration file.
The name of the user or group to grant membership in the target group. This parameter also accepts SIDs instead of names. Note: %DomainSID% is the placeholder for the domain SID, %RootDomainSID% the one for the forest root domain.
Type: String
Parameter Sets: Entry
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Domain the entity is from, that is being granted group membership.
Type: String
Parameter Sets: Entry
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The type of object being granted membership.
Type: String
Parameter Sets: Entry
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The group to define members for.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Whether the specified group should be empty. By default, groups are only considered when at least one member has been defined. Flagging a group for being empty will clear all members from it.
Type: Boolean
Parameter Sets: Empty
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
How the defined group membership will be processed:
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Governs how ALL group memberships on the targeted group will be processed. Supported modes:
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The name of the context defining the setting. This allows determining the configuration set that provided this setting. Used by the ADMF, available to any other configuration management solution.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: <Undefined>
Accept pipeline input: False
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.