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
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?
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.""