Skip to content

User Management functions

The User Management category contains functions to create and manage local user accounts, local groups and group membership on the computer where the script runs.

Functions that work on an existing local group accept either the group name or its SID, except for UsrMgr_GetSIDForLocalGroup, which takes a name. Use a SID, such as S-1-5-32-544 for Administrators, when the script must work on localized versions of Windows. See Well-known SIDs.