-
Notifications
You must be signed in to change notification settings - Fork 13
Description
New to GitHub, so this may not be the place to post this but here goes!
First Mike, thanks for sharing this great script! I've been using it on-prem for a few years now.
We're migrating to Exchange online and I've run into an issue with 401 unauthorized when it tries to save. This is in a PowerShell session connected to exchange online using an account with the permissions mentioned below, run from the exchange server so it has access to the EWS dll (Exchange SP3 in this case). I'm using https://outlook.office365.com/EWS/Exchange.asmx for the $EWSUrl and the -impersonate switch. I've double and triple-checked the account has full access rights (add-mailboxpermission -accessrights fullaccess) and send as permission (set-recipientpermission user -trustee adminuser) to the mailbox in question but without fail it throws 401 unauthorized on $appointment.Save([Microsoft.Exchange.WebServices.Data.SendInvitationsMode]::SendToNone)
Is there some permissions trick to getting this running against Exchange online?