UsrMgr_GetSIDForLocalGroup
Description
Section titled “Description”Gets the SID of the specified local group.
If the group doesn’t exist, the function returns True, gbValue is False and gsValue is empty.
Syntax
Section titled “Syntax”UsrMgr_GetSIDForLocalGroup(sGroupName) As Boolean
Parameters
Section titled “Parameters”sGroupName (String)
Section titled “sGroupName (String)”Name of the local group
Return value
Section titled “Return value”Result will be stored in gsValue.
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_GetSIDForLocalGroup("CapaInstaller")If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup UsrMgr_GetLocalGroupNameBySid Constants Package Property Variables