create mutilple mailbox for existing user exchange 2007 power shell

riade
riade used Ask the Experts™
on
Hi,

i'm looking for script to create mutiple mailbox for existing user exchange 2007
enable-mailbox?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Hi,

Check out this blog it covers bulk mail enabling existing users using the powershell very well: -

Exchange Server 2007: Bulk mailbox-enabling users using Exchange Shell
http://exchangepedia.com/blog/2006/12/bulk-mailbox-enabling-users-exchange-shell.html

get-user | where-object{$_.RecipientType eq User} | Enable-Mailbox Database EXCHANGE1\Mailbox Database}

This article also adds how to use a CSV file: -

Creating a mailbox through Exchange Management Shell
http://www.msexchange.org/tutorials/Managing-mailboxes-Exchange-Server-2007-Part1.html


Author

Commented:
Hi,

can i change command from new-mailbox to enable-mailbox for the following command

Import-Csv recipients.csv | foreach { New-Mailbox alias $_.Alias name $_.Name UserPrincipalName $_.UPN Database mailbox database OrganizationalUnit Users Password $Password ResetPasswordOnNextLogon:$true

because i'm looking for enable mail box with csv file
Commented:
Yes. You can. But check the link for the command the command above is wrong due to cut and paste nastiness.

Author

Commented:
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial