Keyword Reference


#RequireAdmin

Specifies that the current script requires full administrator rights to run.

#RequireAdmin

Parameters

None.

Remarks

This function was primarily aimed at allowing AutoIt scripts to work correctly with Windows Vista User Account Control (UAC) (However, will also work on Windows 2000 and Windows XP).

For more details see AutoIt on Windows Vista.

As this function launch a new process, some functions as Consolewrite() cannot be captured (Scite will not display anything).

Related

IsAdmin

Example


#RequireAdmin

MsgBox(4096, "Info", "Now running with admin rights")