UsrMgr_AddUserToLocalGroup

Description

Adds a user to a local group


Syntax

UsrMgr_AddUserToLocalGroup(sLocationName, sUserName, sGroupName) As Boolean

  • sLocationName - can be Domain name or local computer name (gsWorkstationName)


Parameters

sLocationName (String)

Location of user

sUserName (String)

Name of user

sGroupName (String)

Name of the local group


Example

VBScript
If bStatus Then bStatus = UsrMgr_AddUserToLocalGroup("Domain or ComputerName", "Username", "Group")

Scripting Guidelines


Related functions

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup