[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1902
  • Last Modified:

Accessing calendar and appointments with VBScript

Hello,

How can I access calendar to get certain appointment attendees using VBScript?

I can't use MAPI/CDOEX because it can't be installed on the machine where script is running. So I can see that only WebDAV meets the requirements. It's kind of complex though, could you provide me with some code/hints connected with accessing the appointments in Exchange?

Regards
0
tomecktomeck
Asked:
tomecktomeck
  • 3
  • 2
1 Solution
 
tomecktomeckAuthor Commented:
Wow, thanks, that indeed helps.

This URL:
http://myexserver/exchange/Administrator/Calendar/

What kind of permissions do I need to have? Administrator permissions, or calendar owner's permission?
0
 
tomecktomeckAuthor Commented:
Well, it seems that the only problem left is this URL:

http://myexserver/exchange/USER/Calendar/

When I am trying to open it in a browser it throws out a credential window, however credentials of the USER don't work.

If I am to use it via a script, it gives me:

<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name cha
nged, or is temporarily unavailable.</h3>
 </fieldset></div>

What's the rule in creating this URL? Do I need to put some kind of a path to the calendar I am interested in? Where do I get it from?
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
LeeDerbyshireCommented:
The URL may be
http://myexserver/exchange/user@domain.com/Calendar/
sometimes, E2003 wants the SMTP address, rather than the mailbox alias.
0
 
tomecktomeckAuthor Commented:
I ended up using Exchange Web Services - previously I thought it's impossible to use it via VBScript. And the URL is different in Exchange 2007 - thanks for help anyway!
0
 
LeeDerbyshireCommented:
You can still use the Exchange VDir for WebDAV access even in E2007 (it's there for backward compatibility), but EWS is much better, if you are able to use that.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now