Solved

Exchange 2010 mailbox creation in bulk

Posted on 2016-09-08
4
35 Views
Last Modified: 2016-09-27
Does anyone have a powershell script that I can copy and use for mailbox creation and AD account.  I did an export of the mailboxes to get the csv file and will replace with new users I have about 350 to add so would like to use command to take care of that task?
0
Comment
Question by:Mary Clifford
  • 2
4 Comments
 
LVL 25

Assisted Solution

by:-MAS
-MAS earned 50 total points (awarded by participants)
ID: 41789588
Hi Mary Clifford,
Please check the tool from Technet for bulk creation.
https://gallery.technet.microsoft.com/office/AD-and-mailbox-from-CSV-96a4713f#content
Try with couple of accounts to be safe.
0
 
LVL 15

Accepted Solution

by:
Todd Nelson earned 450 total points (awarded by participants)
ID: 41790378
Give this a try...

EXAMPLE CSV FOR USERS AND MAILBOXES
MyUPN,MyAlias,MyName,MyFirstName,MyLastName,MyDisplayName,MyPrimarySmtpAddress
Test3@mydomain.com,Test3User,Test3 User,Test3,User,Test3 User,test3@mydomain.com
Test4@mydomain.com,Test4User,Test4 User,Test4,User,Test4 User,test4@mydomain.com
Test5@mydomain.com,Test5User,Test5 User,Test5,User,Test5 User,test5@mydomain.com
Test6@mydomain.com,Test6User,Test6 User,Test6,User,Test6 User,test6@mydomain.com

Open in new window


EXAMPLE COMMANDS TO CREATE USERS AND MAILBOXES

This first command will prompt you to enter a password that will be used to set all users with the second command ...
$MyPassword = Read-Host "Enter password" -AsSecureString

Open in new window


This command will take the contents of the CSV file and create users with mailboxes...
Import-Csv "C:\MyNewUsers.csv" | foreach-object { New-Mailbox -UserPrincipalName $_.MyUPN -Alias $_.MyAlias -Name $_.MyName -FirstName $_.MyFirstName -LastName $_.MyLastName -DisplayName $_.MyDisplayName -OrganizationalUnit "mydomain.local/My New Users OU" -Password $MyPassword -ResetPasswordOnNextLogon $true -PrimarySmtpAddress $_.MyPrimarySmtpAddress -Database "DATABASENAME" }

Open in new window

0
 
LVL 15

Expert Comment

by:Todd Nelson
ID: 41817531
You should have enough information to provide a solution for your request.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question