Add Contacts to perticular user as a admin

Hi ,

I want to login as an organization admin in exchange server and i want to add some list of contacts to perticular user and also i want to add some calendar events to that user. I will give one example

As a admin of the organization lets assume an email as admin@myorganization.com and logged into powershell

then i have some emails with in organization as user1@myorganization.com , user2@myorganization.com ,User3@myorganization.com .

I want to add only contacts to user1@myorganization.com . How can i do this in powershell or c#?? Can any one help on this?

September 3rd, 2015 10:39am

Hi,

If it's just a few mailboxes then you can create a PST with the contacts/calendar info you need then import into the mailbox using New-MailboxImportRequest.

If you need to do this in bulk then take a look at these links which use the Exchange Web Services Managed API: 

http://mikepfeiffer.net/2011/01/creating-calendar-items-with-powershell-and-the-ews-managed-api/ 

https://code.msdn.microsoft.com/office/Exchange-2013-Create-289539a3

Thanks.

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 1:38pm

Thanks for your response but these links will import the contacts to the EWS logged in user only but i want to login as an admin of organization and import contacts to user1 without login as user1. Is this possible in EWS or Powershell??
September 3rd, 2015 10:06pm

Hi Prima,

Mark has already given you the hint. You need to have New-MailboxImportRequest

1.First create a PST file containing the contacts to be added.

2. Run this cmdlet to import the PST to the mailbox

New-MailboxImportRequest -Mailbox Ayla -FilePath \\SERVER01\PSTFiles\CommonContacts.pst -TargetRootFolder / -IncludeFolders "#Contacts#"

Refernece for more cmdlets to test:

Import contact from a .pst file and merge them into current contact list (server side):

https://social.technet.microsoft.com/Forums/exchange/en-US/5d6b867d-753f-4067-8e9a-51e5883af9fe/import-contact-from-a-pst-file-and-merge-them-into-current-contact-list-server-side?forum=exchange20

September 4th, 2015 8:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics