Powershell – Import users from CSV file

import-csv user.csv | foreach-object {
echo $_.Displayname
New-Mailbox -name ( $_.Name)
-Alias $_.Alias

-SamAccountName $_.SamAccountName
-RecipientType $_.RecipientType

-RecipientTypeDetails $_.RecipientTypeDetails
-Displayname $_.Displayname

}

You may also like...

Leave a Reply

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