UsrMgr_GetLocalAdministratorsGroupName
Description
Section titled “Description”Gets the name of the local Administrators group. The function finds the group by its well-known SID S-1-5-32-544, so it returns the correct name on localized versions of Windows, where the group has a different name.
Syntax
Section titled “Syntax”UsrMgr_GetLocalAdministratorsGroupName() As Boolean
Return value
Section titled “Return value”Result will be stored in gsValue, for example Administrators.
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_GetLocalAdministratorsGroupName()If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup UsrMgr_GetLocalGroupNameBySid Well-known SIDs Constants Package Property Variables