UsrMgr_DeleteLocalGroup
Description
Section titled “Description”Deletes the specified local group. If the group doesn’t exist, the function returns True and sets gbValue to False.
Syntax
Section titled “Syntax”UsrMgr_DeleteLocalGroup(sGroupName) As Boolean
Parameters
Section titled “Parameters”sGroupName (String)
Section titled “sGroupName (String)”Name or SID of the local group. The name isn’t case sensitive.
Return value
Section titled “Return value”Result will be stored in gbValue: True if the group was deleted, False if the group doesn’t exist.
Example
Section titled “Example” If bStatus Then bStatus = UsrMgr_DeleteLocalGroup("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