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!

How to tell if current user has admin privileges?

Status
Not open for further replies.

GDameron

Programmer
Aug 8, 2003
39
US
Win2K: Is there a way for a batch script to find out if the user running it is a member of the Administrators group?

GD
 
Not sure about a batch script, this is a VB 5 & 6 forum, but with vb you could probably use the NetUserGetInfo API.

"Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'."
 
Right you are. Sorry - I thought I had posted to the BASIC forums. Will re-post there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top