Solved

Getting Free/Busy User Status from Microsoft Exchange Server

Posted on 2008-09-30
2
255 Views
Last Modified: 2012-06-27
Hello,

I would like to connect to an Microsoft Exchange Server anf get the Free/Busy status of an specific user at a specific time.
Now after researching a bit, I found this code on the Exchange SDK Help:
   IAddresseePtr iAddr(__uuidof(Addressee));
   iAddr->EmailAddress = userUPN;
   iAddr->GetFreeBusy(startDate, endDate, Interval, bstr_t(), bstr_t(), bstr_t(), bstr_t());

But as far as I understand this, this would mean I have to run my code on the same machine as the exchange server?

How can I do the same from another machine that has Outlook using the Exchange Server but using another User as the one I want the information from?

Thank You!
0
Comment
Question by:hlienert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
oliver_mk earned 500 total points
ID: 22650576
You can do that using CDO, and also with the Exchange Web Services (only in Exchange Server 2007).
You don't need to run the code on the Exchange Server machine, you just need CDO installed on that machine. If you use the Exchange Web services you can run it wherever you want. You might need to use some user that has privileges to see other user's info that you are interested.
Here is a very good tutorial for EWS:
http://blogs.visoftinc.com/archive/2008/03/20/Using-Exchange-Web-Services-2007-The-Basics.aspx

and if you use CDO, this is a good site for any kind of info:
http://www.cdolive.com/default.htm

Regards,
Oliver
0
 

Author Closing Comment

by:hlienert
ID: 31501517
Hi!

thank you for the reply, glad someone did at the end. By the way, while waiting for some reply here I found out that Redemption can be used very well for this. It will cost some 100 Dollars if I wanna sell my application.
I also almost managed to get the Information using pure MAPI, but it's really hell!!
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question