Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking log-on credentials

Status
Not open for further replies.

mike777

Programmer
Jun 3, 2000
387
US
Hello.
Is there a way to see if the person logged on has administrator privileges on the machine? I've used the environ("username") function to obtain the log-on name and I've checked it to see if that name is "administrator".
Now, however, I need to check system privileges, not just the log-on name. So if Joe is logged on and he has administrator privileges, certain things happen and if he doesn't, other things happen.
Thank you for your help.
-Mike Kemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top