July 2017
Intermediate to advanced
648 pages
31h 9m
English
Let's make this easier by wrapping all of the code up into a reusable function. Add the following code to your PowerShell session:
function New-CalendarItem { [CmdletBinding()] param( [Parameter( Position=1, Mandatory=$true )] [String] $Subject, [Parameter( Position=2, Mandatory=$true )] [String] $Body, [Parameter( Position=3, Mandatory=$true )] [String] $Start, [Parameter( Position=4, Mandatory=$true )] [String] $End, [Parameter( Position=5 )] [String[]] $RequiredAttendees, [Parameter( Position=8 )] [String] $Mailbox ) begin{ Add-Type -Path C:\EWS\Microsoft.Exchange.WebServices.dll } process { $svc = New-Object -TypeName ` Microsoft.Exchange.WebServices.Data.ExchangeService $id = New-Object -TypeName ` Microsoft.Exchange.WebServices.Data.ImpersonatedUserId ...Read now
Unlock full access