Skip to content

UsrMgr_ExistLocalGroup

Checks whether the specified local group exists. You can specify the group by name or by SID.

UsrMgr_ExistLocalGroup(sGroupName) As Boolean

Name or SID of the local group, for example Administrators or S-1-5-32-544. The name isn’t case sensitive.

Result will be stored in gbValue: True if the group exists, otherwise False.

If bStatus Then bStatus = UsrMgr_ExistLocalGroup("CapaInstaller")
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables