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

Getting the Domain

Status
Not open for further replies.

madhatter2002

Programmer
Nov 6, 2002
73
PH
is there a way to get the domain a workstation is using and also the workstation's computer name.

I know that this is possible using the Getenv(), but this only works well if you are using win2k and up, for windows 98 below this is not possible.
 
Take a look at Thread184-707428 and faq184-4449

Brian
 
MadHatter - did you ever get a reliable solution for determening the domain? I have found the UserDomain env. variable unreliable when running under COM+.
Thanks,
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top