>I am using a code to login with a domain user account. That works perfectly fine when the user is logged on the computer with the primary domain:
>lcCurrentUserDomain = GETENV("UserDomain")
>
>However some clients log onto Windows using a secondary domain (something to do with the exchange server), so the program cannot authenticate the user when I specify lcCurrentUserDomain. The authentication must be done on another domain.
>
>I wonder if there is a way to get a list of domains that the program could go through?
Not sure:
oUserInfo = CREATEOBJECT("WScript.network")
? oUserInfo.ComputerName
? oUserInfo.UserDomain
? oUserInfo.UserName
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.