Usage

<< Click to Display Table of Contents >>

Navigation:  Windows Tools > isadmin >

Usage

Command Line Parameters

 

When executing isAdmin, either batch mode (/b) or debug mode (/d) always need to be specified.

 

isadmin /b|d /e /f /u <username>

 

/b /Batchmode

Batch-mode, only outputs TRUE or FALSE. Cannot be used with /d

/d /Debugmode

Debug-mode, logs additional output. Cannot be used with /b

 


/e /uac

Only outputs "TRUE" if app is running inside an elevated shell (use with /b)

/f /ForceDomain

Always check the domain's Administrators group (instead of local Administrators group)

/q /NoQuickCheck

Disables a quick check which evaluates the security token of the current process instead of enumerating security groups. Quick check only works if the process is elevated.

<USERNAME>

Checks if USERNAME has administrative rights. If no username is passed then the currently logged on user is used. Always specify the username without the domain prefix.

 

Examples

 

Example 1: Check if user "john.doe" is a local Administrator

isadmin /b /u john.doe

 

Example 2: Checks if the currently logged on user is a member of the domain's administrator group

isadmin /f /d

 

Example 3: Output "TRUE" if isadmin.exe is running inside an elevated shell

isadmin /b /uac