API Reference
Command
Remove-ADXGroupMember
Removes a member from an Active Directory group.
Examples
Example 1: Preview removing a user from a role group
Remove-ADXGroupMember -Identity 'GG_SQL_Backup_Operators' -MemberIdentity 'marta.nowak' -Domain 'contoso.com' -WhatIf
Example 2: Remove a service account from a delegated admin group
Remove-ADXGroupMember -Identity 'GG_Server_Local_Admins' -MemberIdentity 'svc_sql_ops' -Domain 'contoso.com'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Remove-ADXGroupMember -Identity <string> -MemberIdentity <string> [-Domain <string>] [<CommonParameters>]#Parameters
- Identity string
- Gets or sets target group identity (sAMAccountName, DN, mail, or name).
- MemberIdentity string
- Gets or sets member identity (sAMAccountName, UPN, dNSHostName, DN, mail, or name).
- Domain string
- Gets or sets the optional domain DNS name.
Outputs
ADPlayground.DirectoryMutationResult