Creating Multiple Mailboxes Using Powershell in Exchange 2010

In any situation, you may need to create multiple exchange 2010 mailboxes on your server. So you can create bulk users in exchange 2010 using the below basic information.

First create a CSV file in containing user’s information and save it on Exchange Server. In my care it is saved in Drive C:\

Step 2: Open the EMS and run the below command..

Import-CSV “C:\Bulk-User\NewUserstest.csv” | foreach {new-mailbox -FirstName $_.FirstName -LastName $_.LastName -Name $_.name -DisplayName $_.DisplayName -Alias $_.alias -UserPrincipalName $_.LoginID -SamAccountName $_.SamAccountName -Database $_.Database -OrganizationalUnit $_.OU -password (ConvertTo-SecureString $_.password -AsPlainText -force) -ResetPasswordOnNextLogon $true}

This will result the below output on the screen..

 

Important: One more parameter has been added ResetPasswordOnNextLogon has been set to TRUE so that users can change their password at next loon.

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *