Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / August 2003

Tip: Looking for answers? Try searching our database.

Iterating through Outlook users (Exchange5.5 vs Exchange2K)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Albert Silliman - 28 Aug 2003 16:19 GMT
I am using VBScript to iterate through Exchange mail users
and access each user's contacts via MAPI using the
following code:

//logged on as Exchange Administrator
Set ol = CreateObject ("Outlook.Application")
Set ns = ol.GetNameSpace ("MAPI")
....
// for each user get Contacts folder
Set contacts = ns.GetSharedDefaultFolder (myRecipient, 10)
// read contacts, etc.

The above code works against Exchange 5.5 but NOT against
Exchange 2K.  If anyone has any ideas what needs to be
done differently in Win 2K, I would be very grateful for
your help.
Sue Mosher [MVP] - 28 Aug 2003 16:37 GMT
I believe this issue is this: Just because you're the Exchange administrator doesn't mean you have access to users' mailboxes. That's a change in Exchange 2000. You'll need to use an account that does have the necessary permission on the mailboxes or grant such to your admin account.
Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

> I am using VBScript to iterate through Exchange mail users
> and access each user's contacts via MAPI using the
[quoted text clipped - 12 lines]
> done differently in Win 2K, I would be very grateful for
> your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.