Solved

Exchange 2010 mailbox creation in bulk

Posted on 2016-09-08
4
29 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
  • 2
4 Comments
 
LVL 24

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 14

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 14

Expert Comment

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This video discusses moving either the default database or any database to a new volume.

758 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

21 Experts available now in Live!

Get 1:1 Help Now