Skip to content

UsrMgr_DeleteLocalGroup

Deletes the specified local group. If the group doesn’t exist, the function returns True and sets gbValue to False.

UsrMgr_DeleteLocalGroup(sGroupName) As Boolean

Name or SID of the local group. The name isn’t case sensitive.

Result will be stored in gbValue: True if the group was deleted, False if the group doesn’t exist.

If bStatus Then bStatus = UsrMgr_DeleteLocalGroup("CapaInstaller")
If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables