Solved

Exchange 2010 Mass User Creation

Posted on 2010-11-24
5
850 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
[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
  • 3
5 Comments
 
LVL 28

Expert Comment

by:sunnyc7
ID: 34208972
0
 
LVL 27

Assisted Solution

by:KenMcF
KenMcF earned 100 total points
ID: 34208996
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
ID: 34219774
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
ID: 34219776
0
 
LVL 1

Author Closing Comment

by:rcs81
ID: 34246382
The link above solved my problem
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Certificates for Exchange 2010 4 103
EXCH2013 Standard and Enterprise CALs 5 51
Access Domino mail file via notes client post migration to O365 5 52
NLB +DAG 8 49
Find out what you should include to make the best professional email signature for your organization.
Read this checklist to learn more about the 15 things you should never include in an email signature.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

737 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