Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 773 other subscribers


  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

E2013: Bulk create mailbox or mail enable multiple users [Solved]

Bulk create mailbox :

First search al users and filter on UPN name, to make sure you don’t use system accounts, en pipe the result to Enable-Mailbox

Get-User -RecipientTypeDetails User -Filter { UserPrincipalName -ne $Null } | Enable-Mailbox

You can also bulk mail enable multiple users :

Use this command to create a csv file for all users in the active directory, who do not have a mailbox.

Get-User | Where { $_.RecipientType -eq “User” } | select name |Out-File “C:\Scripts\not-mail-enabled-users.csv”

Edit the csv file, for all the exported users, and add an e-mail address, for each user.

The csv file shoud look like this :





Delete all unnecessary users in the csv file, after the export.


Create multiple Contacts by executing :

Import-CSV “C:\Scripts\not-mail-enabled-users.csv” | ForEach-Object {Enable-MailUser -Identity $_.Name -ExternalEmailAddress $_.EmailAddress}