• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Admin Privilages in Windows NT

Hi All
 I want to know in my VB Application that current user has Administrator privilges or not in Windows Nt , Windows 2000 and Windows XP.I will really appreciate any kind of help or link.

Thanks
Mohammad
0
mshafiqsheikh
Asked:
mshafiqsheikh
1 Solution
 
MadmarlinCommented:


Not 100% sure but try the Environ method..

eg,

strX = Environ("UserName") 'Will return the current user


I think there is an attribute for User Level or Group but I dont have access to this info at this time..
SOrry I couldnt tell you for sure..

Good Luck
Madmarlin
0
 
EDDYKTCommented:
Try this

http://www.netfokus.dk/vbadmincode/codevb.html

and look for isadmin
0
 
TimCotteeCommented:
EDDYKT is correct, but this page has moved, you can get the sample from : http://www.btinternet.com/~vbadmincode/code/isadmin.zip
0
 
mshafiqsheikhAuthor Commented:
That's the what I was looking for.Thanks for your help

I really appreciate other people help also. specialy "EDDYKT".

0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now