UsrMgr_ExistLocalGroup
Description
Section titled “Description”Checks whether the specified local group exists. You can specify the group by name or by SID.
Syntax
Section titled “Syntax”UsrMgr_ExistLocalGroup(sGroupName) As Boolean
Parameters
Section titled “Parameters”sGroupName (String)
Section titled “sGroupName (String)”Name or SID of the local group, for example Administrators or S-1-5-32-544. The name isn’t case sensitive.
Return value
Section titled “Return value”Result will be stored in gbValue: True if the group exists, otherwise False.
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_ExistLocalGroup("CapaInstaller")If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables