First Create a Users.csv file with the following names & emails etc

screeen

RDP on “Your Exchange Server”

Launch ‘Exchange Managementshell’

Copy & Paste the code below then hit enter & enter again:

$users = Import-CSV C:\users.csv

$users| foreach-object {

$Password = convertto-securestring $_.password -asplaintext -force

new-mailbox -name $_.name -alias $_.alias -FirstName $_.Firstname -LastName $_.Lastname -userPrincipalName $_.UPN -database $_.Database -OrganizationalUnit $_.OUpath -Password $Password –ResetPasswordOnNextLogon:$true

}
Advertisements