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
99 stars 21 forks source link

EWSContactSync.ps1 : Cannot convert the "System.Management #90

Closed thomasjgithub closed 6 months ago

thomasjgithub commented 1 year ago

I have followed the instructions, but I do get an error while running the *.bat-file. - any suggestion on this error:

***\EWSContactSync.ps1 : Cannot convert the "System.Management.Automation.PSCredential" value of type "System. Management.Automation.PSCredential" to type "System.Security.SecureString".

It might be that I have messed up while running the Create-SecureCertificatePassword.ps1 and Creat-SecureCredential.ps1 (as it lack instruction in the ReadMe-section).

grahamr975 commented 1 year ago

@thomasjgithub

You need to use the Create-SecureCertificatePassword.ps1 script for storing the certificate password, looks like you used the Create-SecureCredential.ps1 one. I will work on clarifying this in the documentation.

grahamr975 commented 6 months ago

Removed obsolete Create-SecureCredential.ps1 file, closing ticket...