Browse Source

Initial Commit

master
Pugnacious 2 years ago
commit
92e8112be4
  1. 4
      README.md
  2. 7
      bulk_import.ps1
  3. 2
      contacts.csv

4
README.md

@ -0,0 +1,4 @@
# Title: Mail Contact Bulk Import
## Description: This is a script to bulk import mail contacts in exchange.
This script must be run from within the exchange server in order to work.

7
bulk_import.ps1

@ -0,0 +1,7 @@
# Powershell Script for adding mail contacts
# Command to emulate:
#
# New-Mailcontact -Name <NAME> -ExternalEmailAddress: <email> -OrganizationalUnit dw.hfecorp.loca/Contacts -Alias <name with no spaces>
#
Import-CSV contacts.csv | ForEach-Object {New-MailContact -Name $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit $_.OrganizationalUnit -WhatIf}

2
contacts.csv

@ -0,0 +1,2 @@
Name,ExternalEmailAddress,OrganizationalUnit
,,dw.hfecorp.local/Contacts
Loading…
Cancel
Save