Page tree
Skip to end of metadata
Go to start of metadata

Description

Enumerates SIDs for local groups

 

Syntax

UsrMgr_EnumSIDForLocalGroups() As Boolean

 

Return value

Result will be stored in gdValue as Dictionary

 

Example

VBScript
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

 

Related functions

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup

  • No labels