Solved

Creating users in Exchange 2007

Posted on 2009-05-05
1
272 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
[X]
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
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

Office 365 Advanced Training for Admins

Special Offer:  Buy 1 course, get 2nd free!  Buy the 'Managing Office 365 Identities & Requirements' course w/ Accelerated TestPrep, and automatically receive the 'Enabling Office 365 Services' course FREE!

Question has a verified solution.

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

Suggested Solutions

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
A hard and fast method for reducing Active Directory Administrators members.
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 to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

732 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