Powershell Script Help to create Mailboxes in Exchange 2010

Status
Not open for further replies.
S

ScottECC

I have been using the script below to bulk enable accounts for mail in Exchange 2007. The script would automatically use the samaccountname as the exchange alias. Now with Exchagne 2010, you must specify the alias when creating an account or else it will default to the UPN which is what I don't want. How can I pass the -alias parameter to the enable-mailbox using the samaccountname of the user?
get-user -OrganizationalUnit " OU=Users,OU=Staff,DC=mydomain,DC=com" -ResultSize 10000 -Filter {Recipienttype -eq " User" } | Enable-Mailbox -Database " StaffStore"
 
T

Thiyagu14

Hi,

I have setup a provisioning script for bulk mailbox creation on Exchange 2010.

Please check it out.


. This posting is provided " AS IS" with no warranties, and confers no rights.
 
Status
Not open for further replies.
Top