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

folder not found #3

Closed Jcodedk closed 4 years ago

Jcodedk commented 4 years ago

Hello

I'm getting the following error after running the script. VERBOSE: Importing function 'Write-AdminAuditLog'. 2020/01/16 23.32.45 INFO Beginning contact sync for sherlock@nohuman.onmicrosoft.com's mailbox Error Folder Not Found check path and try again 2020/01/16 23.33.12 INFO Creating Contact: admin@nohuman.onmicrosoft.com Contact Created 2020/01/16 23.33.14 INFO Creating Contact: sherlock@nohuman.onmicrosoft.com Contact Created 2020/01/16 23.33.14 INFO Creating Contact: EWSContactSync_service@nohuman.dk Contact Created Transcript stopped, output file is C:\Users\jonas.DESKTOP-U02QVVD\OneDrive\Skrivebord\EWS-Office365-Contact-Sync-master\logs\PowerShell_transcript.DESKTOP -U02QVVD.FZkCu_R5.20200116233231.txt

Jcodedk commented 4 years ago

fixed. Not an error, just telling me it's creating the folder since it does not exist :)

grahamr975 commented 4 years ago

I'll add it to my to-do list to improve this message's clarity. Creating a folder should not create an error message since it's expected behavior. Thanks for bringing this issue to my attention.

grahamr975 commented 4 years ago

When creating a new folder, the script should now produce two messages. See below.

Folder Not Found
<NAME OF FOLDER> not found, attempting to create now...