Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

$cs.UsrMgr_AddUserToLocalGroup(string userName, string groupName)

Parameters

userName

user to add to group

...

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

Example

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

...