Solved

Getting Free/Busy User Status from Microsoft Exchange Server

Posted on 2008-09-30
2
252 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Read this checklist to learn more about the 15 things you should never include in an email signature.
This video discusses moving either the default database or any database to a new volume.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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