Exchange 2010 Mass User Creation

Posted on 2010-11-24
Medium Priority
Last Modified: 2012-05-10
Hi Guys,

I couldn't find anything straight forward to handle this issue. I need to create about 400 users in a new MS Exchange 2010 Environment. I have the following columns in my spreadsheet:

"First Name"
"Last Name"
"E-mail Address"
"Mailbox Size"

Can anyone point me to a script that will parse this spreadsheet / csv and automatically create all the mailboxes / active directory users? I would also like to assign all the newly created users a default password.

Thanks in advance,
Question by:rcs81
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
  • 3
LVL 27

Assisted Solution

KenMcF earned 400 total points
ID: 34208996
You can use the new-mailbox cmdlet in 2010


something like this, this is only an eaxmple and has not been tested. You may want to sdd a line in your code for samaccountname or you could do this

$samaccountname = $user.emailaddress -replace "@Domain.com", ""

$users = import-csv c:\users.csv
Foreach($user in $users){
New-Mailbox -Alias $user.samaccountname -Database "Mailbox Database 1" -Name "$($Firstname) $($LastName)" -OrganizationalUnit Users -Password Password1 -FirstName $user.Firstname -LastName $user.LastName -DisplayName  "$($Firstname) $($LastName)" -ResetPasswordOnNextLogon $true

Author Comment

ID: 34219774
Here's the link that I used. Worked like a charm!

Thanks for all your help

Accepted Solution

rcs81 earned 0 total points
ID: 34219776

Author Closing Comment

ID: 34246382
The link above solved my problem

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
Suggested Courses

764 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