sysutils.isadmin readonly property

Check if the current user is an Administrator or if the current program is run using UAC.

Example

local ui = require "ui" local sysutils = require "sysutils" ui.info("Current user is"..(sysutils.isadmin and " " or " not ").. "an administrator")