Link to home
Start Free TrialLog in
Avatar of gregurl
gregurl

asked on

Create Exchange 2010 Mailbox from Import file CSV

I currently have users with an Active Directory account but no email account.

I would like to use the Exchange command to import a text filefile that would create the email accounts  based on the information in the text file.

The text file would contain the AD username (samaccount), the email address, option for not having email address update on email policy, and the database I will store the user's email account,

What is the command to create the accounts in Exchange?
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ActiveDirectoryman
ActiveDirectoryman


I concurr with hancocka but you don't have to reinvent the wheel.  There are tons of powershell scripts for exchange and AD.

I would highly suggest to look at don jones page.  don jones is known as the "Powershell" Guru. he has written a script for what you want to do using CSV files.

create bulk mailbox users.
http://www.myexchangeworld.com/2010/02/powershell-provisioning-users/
@ActiveDirectoryMan you posted an identical link!
Avatar of gregurl

ASKER

I was working on the command to create mailbox for users that already exist in the system. The only part I have not figure out is that I want to set the primarysmtpaddress to firstname.lastname@mydomain.com instead of using the email policy. How do I set the parameters after primarysmtpaddress to use the firstname and last name in the email address?

get-user –organizationalUnit OUNewUsers| where-object {$_.RecipientType –eq “User”} | Enable-Mailbox –Database “DB1” -primarysmtpaddress | get-mailbox | select name,windowsemailaddress,database
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to read the entire article

"the script creates a whole new user, in this scenario, you can change the script to ur need by changing the cmdlet new-mailbox to enable-mailbox"
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gregurl

ASKER

The exact  syntax in the solution fix my exact problem. The other comments did assist in the solution.