David-Barrett-MS / PowerShell-EWS-Scripts

A collection of PowerShell scripts that use EWS to perform actions against Exchange mailboxes
MIT License
118 stars 13 forks source link

Update Folder : Unable to bind to root folder. No further processing possible / If accessing a mailbox that has MFA enabled, you must use OAuth #40

Open Leana-longo opened 9 months ago

Leana-longo commented 9 months ago

Hi, I'm trying to delete some weekly meetings organized by soemone which no longer exists. .\Update-FolderItems.ps1 -Mailbox $Mailbox -Office365 -OAuth -OAuthTenantId $tenantId -OAuthClientId $clientId -OAuthRedirectUri $redirectUrl -PropertiesMustMatch @{"0x0037001F" = "Standup Meeting It-Cloud"} -Delete -WhatIf

I have 2 errors when i want to use "Update Folder" script

20/11/2023 11:29:46 [ProcessMailbox] Unable to bind to root folder.  No further processing possible.
20/11/2023 11:29:46 [ProcessMailbox] If accessing a mailbox that has MFA enabled, you must use OAuth

I can't resolve those problems

David-Barrett-MS commented 7 months ago

This is usually a permissions issue (e.g. when the authenticating account does not have permission to access the specified mailbox).