Solved

Exchange 2010 mailbox creation in bulk

Posted on 2016-09-08
4
40 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Do you know what to look for when considering cloud computing? Should you hire someone or try to do it yourself? I'll be covering these questions and looking at the best options for you and your business.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

730 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