Group.AccountAdd
Top  Previous  Next


Adds user account to global or local group

Category
SamAccount

Script section
All

Group.AccountAdd
Type, Name, SamAccountNameColumnVariable

Type

Options: Local | Global  
·Local - add account to local group  
·Global - add account to global group  

Name
Group name of group to add account to  

SamAccountNameColumnVariable
Format: %colX%, X = Column in [Data] section with existing SamAccountNames  

Other parameters
This command is executed on the current machine in the [Machines] section.  

Example
Add accounts listed in column 1 to the global group "domain admins"

Group.AccountAdd Global, Domain Admins, %col1%