Set-Mailbox : The term ‘Set-Mailbox’ is not recognized

Set-Mailbox: The term 'Set-Mailbox' is not recognized.

You try to configure an Exchange Online mailbox with PowerShell.

Then you receive the following error message:

Set-Mailbox : The term 'Set-Mailbox' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ Set-Mailbox
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-Mailbox:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The Office 365 Management Tool for Active Directory

Perform All Daily Office 365 Management Directly From AD

Remove Your On-Premises Exchange Server

This error message indicates that the Exchange Online Management module was not found on your system.

To manage Exchange Online mailboxes, you need to install EXO v2, also known as the Exchange Online Management module.

Fortunately, this is quite simple. Run the following command to install EXO v2:

Install-Module ExchangeOnlineManagement

Remember that the module will install in different folders depending on whether your PowerShell console runs in admin mode.

TIP: Always install PowerShell modules from an admin console to avoid side-by-side installations of different module versions.

Once the module has been installed, make sure to connect to Exchange Online before trying to configure mailboxes:


Once the connection is established, you can start using the Set-Mailbox CmdLet.

Manage Office 365 Mailboxes Without PowerShell

Some parts of Office 365 mailbox management, like calendar permissions, require using PowerShell.

To manage Office 365 mailboxes more efficiently, download and install Easy365Manager.

With Easy365Manager, you can directly manage Office 365 mailboxes in the Active Directory Users & Computers management console.

Easy365Manager is a snap-in that extends the user and group properties in AD Users & Computers.

As seen below, with Easy365Manager, you have direct and easy access to configure the Office 365 mailboxes of your AD users from the familiar Active Directory admin tool:

Start working more efficiently today!

  • Easy365Manager only takes a couple of minutes to download and install.
  • Easy365Manager requires no changes to your infrastructure.
  • The integration with AD Users & Computers ensures a zero learning curve.

For a complete list of features in Easy365Manager, look at this.

Download a fully functional 30-day trial here.