Let's talk about IT!
posts - 2205, comments - 295, trackbacks - 0

My Links


Post Categories


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

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

#Global Variables
[string]$Mailbox = ""
[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

Andres Bohren

Print | posted on Wednesday, May 21, 2014 10:19 PM | Filed Under [ Exchange ]

Powered by:
Powered By Subtext Powered By ASP.NET