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)
Section titled “sLocationName (String)”Location of user
sUserName (String)
Section titled “sUserName (String)”Name of user
sGroupName (String)
Section titled “sGroupName (String)”Name of the local group
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_AddUserToLocalGroup("Domain or ComputerName", "Username", "Group")Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables