/
UsrMgr_AddUserToLocalGroup
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")
Related functions
, multiple selections available,
Related content
$cs.UsrMgr_AddUserToLocalGroup
$cs.UsrMgr_AddUserToLocalGroup
More like this
$cs.UsrMgr_CreateLocalUser
$cs.UsrMgr_CreateLocalUser
More like this
$cs.UsrMgr_RemoveUserFromLocalGroup
$cs.UsrMgr_RemoveUserFromLocalGroup
More like this
CMS_AddUnitToWSUSUnAssignedGroup
CMS_AddUnitToWSUSUnAssignedGroup
More like this
CMS_AddComputerToStaticGroup
CMS_AddComputerToStaticGroup
More like this
Invoke-RunAsLoggedOnUser
Invoke-RunAsLoggedOnUser
More like this