Solved

Creating users in Exchange 2007

Posted on 2009-05-05
1
265 Views
Last Modified: 2012-08-14
Hi

At the moment, we use ADUC to create users. The general method is to copy an account that already exists.

Does anyone know if it's possible to create a mailbox enabled account with Exchange 2007 powershell by copying another one? Or do I need to enter all the attributes in the Powershell commands?

Thanks!
0
Comment
Question by:kam_uk
1 Comment
 
LVL 7

Accepted Solution

by:
flaphead_com earned 500 total points
ID: 24312039
to create a mailbox you need to specify
-database
-password
-UserPrincipalName
-Name
-OrganizationalUnit

You can take it all from a CSV or use something this this
$user     = Read-Host "Enter Username.."

$password = Read-Host "Enter Password.." -AsSecureString

$OU       = Read-Host "Enter OU........"
 

IF ($OU.length -eq 0) 

{

	$OU = "e2k7.local/MyUsers"

}
 

$database = "e12powershell\First Storage Group\Mailbox Database"

$ExternalEmailAddress = $user + "@e2k7.local"

$txtfile = $user + ".txt"

new-mailbox -database $database -password $password -UserPrincipalName $ExternalEmailAddress -Name $user -OrganizationalUnit $OU
 

get-mailbox $user 

get-mailbox $user | fl | out-file $txtfile | notepad $txtfile

"Provisioning complete"		 

Open in new window

0

Featured Post

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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 …

920 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

16 Experts available now in Live!

Get 1:1 Help Now