Closed gkosmas closed 1 year ago
There is a copy of the EWS Managed API available in the same folder as the scripts: https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/blob/master/Legacy/Microsoft.Exchange.WebServices.dll
This doesn't sound like a dll version issue, but would be worth testing with the correct library. Also please test with the latest version of the script (I've just published 1.3.1).
Hi David, I have tried to use your Merge-MailboxFolder.ps1 script today and I am not sure what has changed but I am unable to get it to run.
I import the Web Services DLL like I normally do Import-Module -Name "C:\Program Files\Microsoft Office\root\Office16\ADDINS\Microsoft Power Query for Excel Integrated\bin\Microsoft.Exchange.WebServices.dll"
Then I run the command to start archiving
The script accepts the Auth Code as normal
After this, I get the below error message: Exception setting "TraceListener": "Cannot convert the "EWSTracer" value of type "EWSTracer" to type "Microsoft.Exchange.WebServices.Data.ITraceListener"." At C:\Users\gkosmas\Technical Documents\Office 365\Archive\Merge-MailboxFolder2-2.ps1:1929 char:13 $exchangeService.TraceListener = $script:Tracer