David-Barrett-MS / PowerShell-EWS-Scripts

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

Merge-Mailbox issue with copy/move emails #5

Closed stasxpulse closed 1 year ago

stasxpulse commented 3 years ago

Hi,

Could you please help me figured out what might cause this issue. I'm using impersonate feature and got this error: No matching items were found [MoveItems]Copying from st*@:\Top of Information Store\Inbox to sta@:\Top of Information Store\Inbox 2 items found; attempting to copy Permanent error ErrorToFolderNotFound reported for item: AQMkADhlOGE4MGY0LWY5NTMtNDA3Zi1hYzdlLWU2YTE0MmI1MzkxYQBGAAADlBaV8KjmcUi0WBTt4kP6hwcAjuo13kTFdE+l+AIOL3oMVwAAAgEMAAAACSUY2EAcGUSu4dB5E3TE3wAAAjC9AAAA 2 items reported error during batch request (if throttled, some failures are expected, and will be retried) Permanent error ErrorToFolderNotFound reported for item: AQMkADhlOGE4MGY0LWY5NTMtNDA3Zi1hYzdlLWU2YTE0MmI1MzkxYQBGAAADlBaV8KjmcUi0WBTt4kP6hwcAjuo13kTFdE+l+AIOL3oMVwAAAgEMAAAACSUY2EAcGUSu4dB5E3TE3wAAAjC8AAAA 1 items reported error during batch request (if throttled, some failures are expected, and will be retried) [MoveItems]st*@****:\Top of Information Store\Inbox processed, now contains 2 items(s)

If using script without this feature everything works fine, but I can't move/copy items for mailboxes which not belongs to me.

Thanks, Stas