Solved

Admin Privilages in Windows NT

Posted on 2002-04-07
4
191 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
Comment Utility


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
Comment Utility
Try this

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

and look for isadmin
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 50 total points
Comment Utility
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
Comment Utility
That's the what I was looking for.Thanks for your help

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

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now