Have been attempting to run the remove-directbooking.ps1 script. Worked through several errors, but have now reached one I can't seem to get around. Account running the script has "View-Only Organization Management" and Impersonation extended rights on all Client Access servers (ms-Exch-EPI-Impersonation) and on the target test mailbox (ms-Exch-EPI-May-Impersonate).
However, when I run the script I still get:
"Error - Exception calling "Bind" with "2" argument(s): "The account does not have permission to impersonate the requested user."
I also get an error regarding the public folder:
"there is no public folder replica matching the version of Exchange of the EWS session. Cannot validate public folder settings."
Even though all Exchange servers in the organization are the same SP/hotfix level, and all public folder databases have a replica of all free/busy folders.
EWS Managed API is at version 2.2, I tried downgrading to 1.2.1 but no change.
Thanks for any help.