# Function Reference

# IsAdmin

Checks if the current user has full administrator privileges.

IsAdmin ( )

## Return Value

Success: | 1 if the current user has administrator privileges.
Failure: | 0 if user lacks admin privileges.

## Remarks

It returns 1 under Windows Vista only if running with a full administrator token (i.e. #RequireAdmin has been used, or has already been elevated by UAC).

## Example

    #include <MsgBoxConstants.au3>

    If IsAdmin() Then
        MsgBox($MB_SYSTEMMODAL, "", "IsAdmin" & @CRLF & "Admin rights are detected.")
    EndIf