Solved

Exchange 2010 mailbox creation in bulk

Posted on 2016-09-08
4
33 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 14

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 14

Expert Comment

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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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