Skip to content

UsrMgr_GetLocalAdministratorsGroupName

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.

UsrMgr_GetLocalAdministratorsGroupName() As Boolean

Result will be stored in gsValue, for example Administrators.

If bStatus Then bStatus = UsrMgr_GetLocalAdministratorsGroupName()
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup UsrMgr_GetLocalGroupNameBySid Well-known SIDs Constants Package Property Variables