?
Solved

Admin Privilages in Windows NT

Posted on 2002-04-07
4
Medium Priority
?
221 Views
Last Modified: 2010-05-02
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
Comment
Question by:mshafiqsheikh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:Madmarlin
ID: 6924757


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
 
LVL 26

Expert Comment

by:EDDYKT
ID: 6925078
Try this

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

and look for isadmin
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 6925442
EDDYKT is correct, but this page has moved, you can get the sample from : http://www.btinternet.com/~vbadmincode/code/isadmin.zip
0
 

Author Comment

by:mshafiqsheikh
ID: 6925722
That's the what I was looking for.Thanks for your help

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

0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question