[SOLVED] new-mailbox : the term ‘new-mailbox’ is not recognized as the name of a cmdlet, function, script file or operable program.

When you create a mailbox in Microsoft Exchange Server 2016 by using PowerShell, you may get the following error.

new-mailbox : the term 'new-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.

Solution

Open PowerShell with elevated privileges and execute the following command.

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;

Explanation

The above command when executed imports the exchange module into PowerShell session.

 

 

Leave a Comment