$cs.UsrMgr_AddUserToLocalGroup

Syntax

$cs.UsrMgr_AddUserToLocalGroup(string userName, string groupName)

 

Parameters

userName

user to add to group

groupName

group to add to user to - can be a SID-name

 

Example

$cs.UsrMgr_AddUserToLocalGroup('capaadmin','S-1-5-32-544') or $cs.UsrMgr_AddUserToLocalGroup('capaadmin','administrators')

returns nothing