Bulk Mail Users Creation Exchange 2010

There will always be the need to create multiple e-mail account for many users using exchange 2010. below is a simple poweshell command that will import a CSV file called exchange and create according to the data inside the file the users specified.



Import-Csv C:\exchange.csv | % {
$name = $_.first + ” ” + $_.last;

New-Mailbox -Name $name -Alias $_.Alias -FirstName $_.first -LastName $_.last -UserPrincipalName $_.upn -database $_.database -org $_.OU -password (ConvertTo-SecureString $_.password -AsPlainText -Force)


note that all the variables in the command above are also presented in the below example CSV file.



Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>