UsrMgr_AddUserToLocalGroup
UsrMgr_AddUserToLocalGroup
SYNOPSIS
Adds a user to a local group.
SYNTAX
__AllParameterSets
UsrMgr_AddUserToLocalGroup [-UserName] <string> [-GroupName] <string> [<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
This function adds a user to a local group on the system.
EXAMPLES
EXAMPLE 1
UsrMgr_AddUserToLocalGroup -UserName “JohnDoe” -GroupName “Administrators”
EXAMPLE 2
UsrMgr_AddUserToLocalGroup -UserName “JohnDoe” -GroupName “S-1-5-32-544”
PARAMETERS
-GroupName
The name of the group to add the user to.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases:
- SID
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-UserName
The name of the user to add to the group.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
For more information, please visit https://capasystems.atlassian.net/wiki/spaces/CI65DOC/pages/19462456159/cs.UsrMgr+AddUserToLocalGroup