Solved

Admin Privilages in Windows NT

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exit a vb6 apps when a calling it apps closes 15 62
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 65
Macro problems with Excel file 6 52
SQL Server 2012 to SQL Server 2016 24 54
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

732 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