API Reference
Command
Add-ADXGroupMember
Adds a member to an Active Directory group.
Examples
Example 1: Preview adding a user to an operations group
Add-ADXGroupMember -Identity 'GG_SQL_Backup_Operators' -MemberIdentity 'marta.nowak' -Domain 'contoso.com' -WhatIf
Example 2: Add a service account to a delegated admin group
Add-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
Add-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