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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identifying which NT Domain a User is set up in

Status
Not open for further replies.

Slarti

Programmer
Feb 5, 2003
45
GB
I'm using some code to identify the Users name based on their unique UserID (courtesy of DrJavaJoe) and need to identify which Domain a User is set up in. Is there a way to identify the Domain from the log on script? (The Application that I am writing will be used by the User whose Domain needs to be identified and not used by a third party trying to identify someone else). If not I can loop through the possibilities but that's not so neat.
TY.
 

Lets see ...

Using Advance Search in my forums with all words with the words of "which domain log" I came across this thread222-601509 which has a solution by strongm that I think will help you out. It also contains the dreaded environ possibility also.

There were a few more threads that may have been worth looking at but you will need to do the search for yourself if you want to see them.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top