Solved

Admin Privilages in Windows NT

Posted on 2002-04-07
4
198 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
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 50 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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