Reputation: 3162
We have exchange 2013 and users are using OWA to access it. There is no function that users can import contacts themselves from a file in OWA. Is there a way that I can import contacts for users on the server side by powershell?
When I try get-mailcontact -id "user" | format-list
i got error messages saying that "user" can't be found on domain.....but this user is an active domain user.
Any idea please?
Upvotes: 0
Views: 3670
Reputation: 13537
Here you go, follow the steps as seen in this blog post. You'll need to enable Exchange Web Services impersonation for your users first, and then you can mass import contacts for your individual users.
http://www.stevieg.org/2010/07/using-powershell-to-import-contacts-into-exchange-and-outlook-live/
Once you've enable Exchange Web Services impersonation, it is very easy to import contacts, here's the syntax you'll use.
.\Import-MailboxContacts.ps1 -CSVFileName .\Contacts.csv `
-EmailAddress [email protected] -EwsUrl https://server/EWS/Exchange.asmx
Upvotes: 1