How to Create Multiple Mail Contacts Using A PowerShell Script Exchange Server 2016

In this article I’ll show you how I create multiple Mail Contacts users In Exchange Server 2016, however, this code will work on Exchange Server 2010, 2013 and Exchange Online.

Creating multiple mail contacts can be a very boring task and when automating the process a 30 minutes job turns to a 2-minute job.

In this process, I’ll use a .CSV file with the Mail Contacts details which you can see blow.


User01, user01@dev.local

User02, User02@dev.local

Once I have the .CSV file ready I’ll use the Exchange Management Shell to create the Contacts.

To get started, I’ve created the .CSV file blow.

Next, I’ll open the Exchange Management Shell

And using the code below, I’ll create the Mail Contacts

Import-CSV "contacts.csv" | Foreach {New-MailContact -Name $_.Name -ExternalEmailAddress $_.Email -OrganizationalUnit "Users"}