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

Get Domain Name Of Windows 98 Computer on Server

Status
Not open for further replies.

SpankYou

Programmer
Feb 24, 2003
211
GB
Hey,

(This is an office 2000 database built using Access XP, on a Windows XP system)
How do I get the Domain Name from a Windows 98 computer on a Server. I have tried many different functions available on the net including,

Set net = CreateObject("Wscript.Network")
sDomain = net.UserDomain

(Windows Scripting Host is installed)

And two or three other functions that involve obtaining both the username and the domain name. I have no problems obtaining the user name but every function that obtains the domain name produces a blank result. All of these functions work on XP machines as long as the Office version is either XP or 2000, but on a windows 98 machine with office 2000, I can not retrieve the domain name. I have read that 98 stores its domain names and other data differently to later versions, but I have been unsuccessful in obtaining it.

Any one have any ideas?

I'm stumped?


Cheers

Sam


"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top