Create Mail Contacts from CSV File

This script will create Exchange Mail Contacts from a list in a CSV File

Import-Module ActiveDirectory
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
Import-CSV C:\ContactList.csv | ForEach-Object{
New-MailContact -Name $_.Name -ExternalEmailAddress $_.Email -OrganizationalUnit $_.OUpath
}
Facebooktwittergoogle_pluslinkedinby feather

Leave a Reply

Your email address will not be published. Required fields are marked *