Posts Tagged "XML"

How to connect to and read data from Mailboxes, Calendars, … via Exchange Web Services and vbScript?

Posted by on Aug 3, 2011 in Exchange Server, VBScript | 16 comments

I offen wondered how I can programmatically read items from mailboxes stored within Microsoft Exchange Server. Some time ago I used Outlook with some macros that accessed the information I needed. But what if Outlook does not run? Or what if the computer crashed – who would logon and start Outlook? Sure you can find workarounds for every problem. But this never seemed to be a ‘cool’ solution to me. In the past few weeks – after I got my Exchange 2010 MCITP – I started to have a look at EWS – Exchange Web Services (available since Microsoft Exchange Server...

Read More

Certificate problems with vbscript and xml http calls

Posted by on Feb 10, 2011 in VBScript | 20 comments

Certificate problems with vbscript and xml http calls

May be some of you already got stuck with the problem about xml http calls, vbscript and secured websites with certificate problems – the others surely will… There are some problems occurring right often. For example the host name does not match the subject name of the certificate or the certificate is not valid (yet) or the certificate’s chain is broken. Here you can see 2 of those errors: Error 80072F0D in msxml3.dll: The certificate authority is invalid or incorrect Error 80072F06 in msxml3.dll: The host name in the certificate is invalid or does not match When opening...

Read More

How to read and use the contents of a website from Powershell?

Posted by on Nov 6, 2010 in Powershell | 0 comments

First we need to create a xmlhttp object, similar to what you would do in JavaScript $objXmlHttp = New-Object -ComObject MSXML2.ServerXMLHTTP Use the open method to specify the url, optional username and password. The third parameter (optional) is a boolean indicator of whether the call is asynchronous – the default is true. $objXmlHttp.Open("GET", "http://www.normanbauer.com", $False, "username", "password") $objXmlHttp.Send() Now we can work with the results $content = $objXmlHttp.responseText $status = $objXmlHttp.status $statustext...

Read More