system.iscurrentuserlocaladministrator Function
Syntax
system.iscurrentuserlocaladministrator()
Parameters
none
Return Value
- boolean
TRUE if the current thread is running as a user that is member of the local admins group. FALSE if not.
Remarks
This does not check if the user is administrator, when the system is part of a Windows Domain.
Example
if (not system.iscurrentuserlocaladministrator()) then
messagebox("you need to be administrator", "systool")
end
See also
