Skip to content

UsrMgr_GetLocalGroupNameBySid

Gets the name of the local group with the specified SID. This is useful for built-in groups, whose names differ between Windows languages.

If no local group has the SID, the function returns True, gbValue is False and gsValue is empty.

UsrMgr_GetLocalGroupNameBySid(sSid) As Boolean

SID of the local group, for example S-1-5-32-544 for the Administrators group

Result will be stored in gsValue.

If bStatus Then bStatus = UsrMgr_GetLocalGroupNameBySid("S-1-5-32-544")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup UsrMgr_GetSIDForLocalGroup Well-known SIDs Constants Package Property Variables