troubleshooting Question

Using CDO (VBScript) Login Method to Specific Domain

Avatar of mathewtsang100
mathewtsang100 asked on
ProgrammingExchangeVB Script
1 Comment1 Solution855 ViewsLast Modified:
FIRST PART: I am using CDO 1.2.1 to logon a user mailbox, however am encountering an issue when the following condition is present:

1) I have two users with the same userID and mailboxname (Exchange Alias) in the same organization (AD forest), but in different domains.

For example, IN ad if I have domains DOM1 and DOM2
and In DOM1 I have user John Smith, with exchange alias jsmith and userID jsmith
and in DOM2 I have user Joe Smith, with  exchange alias jsmith and userID jsmith

I get an ambiguous user error in CDO.  I want the session.logon method to understand that I am looking for the jsmith that has a mailbox on the exchange server's domain.

So if I have an exchange server on DOM1 and I run the script, I want to somehow use session.logon with jsmith, such that JOHN SMITH's account is accessed, and not JOE SMITH.

As far as I can tell, trying to logon as, or COM1\jsmith don't work.

SECOND PART: Also, what happens if I have the AD account for JOHN SMITH in DOM2, but the mailbox residing on a server on DOM1?  does that pose any issues?

Any thoughts?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros