Solved

Exchange 2010 Mass User Creation

Posted on 2010-11-24
5
842 Views
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"
"Department"
"Location"

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,
Seth
0
Comment
Question by:rcs81
  • 3
5 Comments
 
LVL 28

Expert Comment

by:sunnyc7
Comment Utility
0
 
LVL 27

Assisted Solution

by:KenMcF
KenMcF earned 100 total points
Comment Utility
You can use the new-mailbox cmdlet in 2010

http://technet.microsoft.com/en-us/library/aa997663.aspx

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
}
0
 
LVL 1

Author Comment

by:rcs81
Comment Utility
Here's the link that I used. Worked like a charm!

Thanks for all your help
0
 
LVL 1

Accepted Solution

by:
rcs81 earned 0 total points
Comment Utility
0
 
LVL 1

Author Closing Comment

by:rcs81
Comment Utility
The link above solved my problem
0

Featured Post

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Distribution Group 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 Recipients >>…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now