X

[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.

 

 

Karim Buzdar: About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various websites.
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings