$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
Â