Exchange 2007–>Bulk Create Mailbox

Create a CSV file with columns as below:

Database Password Name  OU Alias fqdn

##Create password as secure string

$data = import-csv $args[0]

## Create a function to convert password into a secure string

function New-SecureString([string] $plainText)


$secureString = new-object System.Security.SecureString

foreach($char in $plainText.ToCharArray())






foreach ($i in $data)


$ss = new-securestring $i.password

$upn = $i.alias + “@” + $i.fqdn

new-mailbox -Password $ss -Database $i.database -UserPrincipalName $upn -Name $ -OrganizationalUnit $i.ou



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s