Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logon script that determines if user has domain admin

Status
Not open for further replies.

bcardona

Programmer
May 10, 2001
103
US
i am wondering if any knows how to or if it is in active directory, to determine when a user logs on if he/she has domain admin rights.
 
You can always create a batch file.. something similar to this;

net user %username% > %username%.txt

This will dump the output of the net user command to a text file. From there you can see what groups the user is a member of.

I am sure there is a neater method using VBScript, but this is quick and dirty.

Hope this helps.
 
Or you can get the IFMEMBER utility from Microsoft which will check the group membership for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top