EWS Managed API 2.2 released

Hallo zusammen,

Gestern hat Microsoft die neue Version von EWS Managed API veröffentlicht.

Microsoft Exchange Web Services Managed API 2.2
http://www.microsoft.com/en-us/download/details.aspx?id=42951

Versuchen wir die neue Version der EWS Managed API DLL mit der Powershell aus

#Global Variables
[string]$Mailbox = "a.bohren@icewolf.ch"
[string]$Username = "a.bohren"
[string]$Password = "SecretPassword"
[string]$Domain = "Corp"

# Load EWS Managed API DLL  and Connect to Exchange
[string]$EwsApiDll = "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"
Import-Module -Name $EwsApiDll
 
$EWService = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP2)
$EWService.Credentials = new-object Microsoft.Exchange.WebServices.Data.WebCredentials($Username,$Password,$Domain)
$EWService.AutodiscoverUrl($Mailbox, {$True})

$ItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(10) 
$Items = $EWService.FindItems([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$ItemView)               
$Items | ft Subject

Grüsse
Andres Bohren