isadmin

<< Click to Display Table of Contents >>

Navigation:  Windows Tools >

isadmin

IsAdmin detects whether a user is a member of the local Administrators group, either through direct membership in the Administrators group or through indirect membership through another group.

 

IsAdmin by default evaluates the currently logged on user (in whose context IsAdmin runs) but you can also specify a different username through the command line.

 

Workstation / Member Server vs. Domain Controller

If IsAdmin is executed on a workstation or member server then it will check the local Administrators group, but you can also force IsAdmin to check the Administrators group of the domain instead. When executed on a domain controller, IsAdmin has to check the domain's Administrator group.

 

Return Code (%ERRORLEVEL%)

IsAdmin returns 0 if the specified user is an Administrator or 0 if the user is not an administrator or an error occurred.

 

Interface

Command-line

 

Files

isadmin.exe

 

Supported Platforms

Windows