grahamr975 / EWS-Office365-Contact-Sync

Uses Exchange Web Services to synchronize a Global Address List in Office 365 to a user's mailbox
MIT License
96 stars 21 forks source link

Exception calling Autodiscoverurl #50

Open floaton1 opened 2 years ago

floaton1 commented 2 years ago

Having a little issue. Any idea what would cause this to stall at "Using Negotiate Auth" then error with the below message?

VERBOSE: Importing function 'Write-AdminAuditLog'. 2022/01/11 14:22:17 INFO Beginning contact sync for email@email.com's mailbox VERBOSE: Loading module from path 'C:\Users\user\OneDrive - Construction Company, Inc\Documents\Scripts\EWS-Office365-Contact-Sync-master\EWSContacts\Module\bin\Microsoft.Exchange.WebServices.dll'. VERBOSE: Using EWS dll from Local Directory VERBOSE: Using Negotiate Auth PS>TerminatingError(Connect-EXCExchange): "Exception calling "AutodiscoverUrl" with "2" argument(s): "The Autodiscover service couldn't be located.""

TerminatingError(Connect-EXCExchange): "Exception calling "AutodiscoverUrl" with "2" argument(s): "The Autodiscover service couldn't be located."" 2022/01/11 14:24:28 ERROR Failed to Sync-ContactList for email@email.com Exception calling "AutodiscoverUrl" with "2" argument(s): "The Autodiscover service couldn't be located."


Windows PowerShell transcript end End time: 20220111142428

grahamr975 commented 2 years ago

Can you take a look at some of the resolutions offered by users in duplicate issue #27? Let me know if any of these work. Secondly, what's your exchange environment?