?
Solved

Exchange 2010 mailbox creation in bulk

Posted on 2016-09-08
4
Medium Priority
?
47 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 27

Assisted Solution

by:☠MAS☠
☠MAS☠ earned 200 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 16

Accepted Solution

by:
Todd Nelson earned 1800 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 16

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

With the rising number of cyber attacks in recent years, keeping your personal data safe has become more important than ever. The tips outlined in this article will help you keep your identitfy safe.
What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

771 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