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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@ActiveDirectoryMan you posted an identical link!
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@mydomai n.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,d atabase
get-user –organizationalUnit OUNewUsers| where-object {$_.RecipientType –eq “User”} | Enable-Mailbox –Database “DB1” -primarysmtpaddress | get-mailbox | select name,windowsemailaddress,d
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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"
"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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad your accounts are enabled.
ASKER
The exact syntax in the solution fix my exact problem. The other comments did assist in the solution.
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/