Skip to content

Remove-ADGroupsViaInEnUit

SYNOPSIS

Removes Active Directory group memberships based on a reference user.

SYNTAX

Remove-ADGroupsViaInEnUit [-gebruiker] <Object> [-nieuwereferte] <Object> [-TaskNumber] <Object>
 [-MobielePloeg] [<CommonParameters>]

DESCRIPTION

The `Remove-ADGroupsViaInEnUit` function removes group memberships for a specified Active Directory user by comparing their groups with those of a reference user. It filters out specific groups, handles mobile team rights if specified, and logs the changes in Active Directory.

EXAMPLES

EXAMPLE 1

Remove-ADGroupsViaInEnUit -gebruiker "jdoe" -nieuwereferte "asmith" -TaskNumber "12345"

Removes group memberships for the user "jdoe" based on the groups of the reference user "asmith" and logs the task with number "12345."

EXAMPLE 2

Remove-ADGroupsViaInEnUit -gebruiker "jdoe" -nieuwereferte "asmith" -TaskNumber "12345" -MobielePloeg

Removes group memberships for the user "jdoe" based on the groups of the reference user "asmith," including mobile team rights, and logs the task with number "12345."

PARAMETERS

-gebruiker

The identity of the Active Directory user whose group memberships will be removed.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-nieuwereferte

The identity of the reference Active Directory user whose group memberships will be used for comparison.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TaskNumber

The task number associated with the operation for logging purposes.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MobielePloeg

A switch parameter that, when specified, includes mobile team rights in the comparison process.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
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