Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Creating users in Exchange 2007

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
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 …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

809 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