Forum Discussion
Exchange Online - Extract user's contacts with PS
- Jul 24, 2018
The script seems to have some undefined variables, and thus fails to connect. You can put something like this:
$exchangeService.Url = "https://outlook.office365.com/EWS/Exchange.asmx"
I'd recommend using Glen's EWSContacts module for any Contacts related operations: https://github.com/gscales/Powershell-Scripts/tree/master/EWSContacts
The script seems to have some undefined variables, and thus fails to connect. You can put something like this:
$exchangeService.Url = "https://outlook.office365.com/EWS/Exchange.asmx"
I'd recommend using Glen's EWSContacts module for any Contacts related operations: https://github.com/gscales/Powershell-Scripts/tree/master/EWSContacts
- Jaap HoetmerJul 25, 2018Copper Contributor
Hi Vasil,
Thanks for your suggestion, it turned out to be a problem with autodiscovery not finding the correct URL, the suggestion you gave by bypassing autodiscovery works. I'll try to understand why it doesn't work using Autodiscovery.
I'll also give Glen's EWSContacts script a try.
Much appreciated, kind regards,
Jaap