David Barrett

Results 25 comments of David Barrett

Autodiscover is failing here, which implies that either it isn't set up correctly or the credentials are wrong. For Office 365, you can bypass autodiscover completely as it isn't required...

Which script are you referring to? I've updated the OAuth for several of the scripts but not all. If you can let me know which one I'll check and make...

Interesting, as that is one of the scripts that is up-to-date. However, the log-in URL is determined by your tenant Id, so you need to ensure that is passed -...

The OAuth settings must all come from your own tenant registration. You need to register the OAuth application in the Azure portal, per this guide: https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth You can then pass...

Is this against Exchange Online? What parameters are you using when calling the script? Unauthorized means just that, so it's just a case of working out why. For Exchange Online,...

That message can only be shown if there was no response to the batch copy request, though I'd have expected a more useful error too. It's odd that the script...

Will test this script with public folders when I get a chance.

I suspect the issue is that you are trying to copy from the archive mailbox of one user to the primary mailbox of another. Does it work from primary to...

Assuming you mean an auth prompt, you'll need to use app auth to avoid that. Delegate auth will prompt each time the script is run.

https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/wiki/Exchange-Online-OAuth-Configuration