[Webinar] Streamline your web hosting managementRegister Today

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

Accessing calendar and appointments with VBScript


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?

  • 3
  • 2
1 Solution
tomecktomeckAuthor Commented:
Wow, thanks, that indeed helps.

This URL:

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


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>

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?
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!

The URL may be
sometimes, E2003 wants the SMTP address, rather than the mailbox alias.
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!
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.

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