UsrMgr\_AddUserToLocalGroup
Description
Section titled “Description”Adds a user to a local group
Syntax
Section titled “Syntax”UsrMgr_AddUserToLocalGroup(sLocationName, sUserName, sGroupName) As Boolean
- sLocationName - can be Domain name or local computer name (gsWorkstationName)
Parameters
Section titled “Parameters”sLocationName (String)
Location of user
sUserName (String)
Name of user
sGroupName (String)
Name of the local group
Example
Section titled “Example”VBScript
If bStatus Then bStatus = UsrMgr_AddUserToLocalGroup("Domain or ComputerName", "Username", "Group")Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup