Skip to content

UsrMgr_EnumSIDForLocalGroups

Enumerates the local groups on the computer together with their SIDs.

UsrMgr_EnumSIDForLocalGroups() As Boolean

Result will be stored in gdValue as a Dictionary object. Each key is a group name and each item is the group’s SID.

If bStatus Then bStatus = UsrMgr_EnumSIDForLocalGroups()
If bStatus Then
For Each sKey in gdValue.Keys
bStatus = Job_WriteLog("Custom", "Group name: '" & sKey & "' SID: '" & gdValue.Item(sKey) & "'", bStatus, True)
Next
End If

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables