Solved

Creating users in Exchange 2007

Posted on 2009-05-05
1
264 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

705 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

20 Experts available now in Live!

Get 1:1 Help Now