Skip to content

Exchange Online #1

@xMarcus

Description

@xMarcus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions