Jan 08 2019 08:36 AM
Hello, I have a small project to sync contact that we have in a system to all the employes.
Right now, i'm importing the contacts to a generic account using Import-ContactList and Search-mailbox to delete each time because it's creating duplicates instead of updating the existing ones, and then I add the generic account to all mobile phone using our mdm.
It's working but it's really not the best...
Any way with powershell in 365 to EDIT a contact inside a mailbox ? that way I could manage it without having the delete everything before pushing the changes...
thank you!
Jan 08 2019 08:50 AM
SolutionIf you want to share them with everyone in the company, the best place to put them is the GAL by creating a mail contact entries. Or if you don't want to clutter the GAL, something like a PF Contacts folder: https://www.cogmotive.com/blog/office-365-tips/create-a-company-shared-contacts-folder-in-office-365
If you insist on storing them in a mailbox, you will need some EWS-based script, such as the one here: https://www.allabout365.com/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-li...
Jan 08 2019 08:54 AM
Thank you for your quick answer.
Yes GAL would be easy but with more than 1500+ employees, I need to push by departments or it will be too craazy...
I'll check EWS, I tough it was only for onprem not 365
Thank you again
Jan 08 2019 08:50 AM
SolutionIf you want to share them with everyone in the company, the best place to put them is the GAL by creating a mail contact entries. Or if you don't want to clutter the GAL, something like a PF Contacts folder: https://www.cogmotive.com/blog/office-365-tips/create-a-company-shared-contacts-folder-in-office-365
If you insist on storing them in a mailbox, you will need some EWS-based script, such as the one here: https://www.allabout365.com/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-li...