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

Failed to fetch Global Address List Contacts from Office 365 #7

Closed landregen closed 4 years ago

landregen commented 4 years ago

When i try to use the script, i've the error :

`Write-Log : Failed to fetch Global Address List Contacts from Office 365 Directory Au caractère Ligne:50 : 3

grahamr975 commented 4 years ago

I'm not able to reproduce this error.

landregen commented 4 years ago

1) Yes the accaount have application impersonation right 2) The EWS was installed 3) Yes i use a credential file 4) I'm in a Office 365 environment

supersmink commented 4 years ago

I've had the same issue, and have fixed by adding -AllowClobber to Line 36 of \EWSContacts\Module\functions\contacts\Get-GALContacts.ps1

Line 36 now reads: Import-PSSession $Session -DisableNameChecking -AllowClobber

grahamr975 commented 4 years ago

After some testing, I've implemented @supersmink's bugfix into the script. Thanks for your help!

@Landregen, please download the latest version and confirm that this issue is resolved for you.

grahamr975 commented 4 years ago

Closing this issue due to lack of reply...