Management

Subscribe to Blog via Email

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

Join 785 other subscribers

Social

  • 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 :

Name,EmailAddress

User1,user1@domain.nl

User2,user2@domain.nl

 

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}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.