The term ‘Add-MailboxPermission’ is not recognized as the name of a cmdlet, function, script file, or operable program

Hi, this is Prem, I have been a Microsoft 365 support ambassador and have been sharing my experience with everyone in the form of blog posts and YouTube videos, In this blog I will share How to Fix The term Add-MailboxPermission is not recognized Error.

 

 

This cmdlet is available in on-premises Exchange and Microsoft 365.

 

 

We will talk about both the environment and how to fix the issue for each of them respectively.

 

 

If you get the following error when running the command, Add-MailboxPermission on the PowerShell then please check below steps that can assist.

 

The term 'Add-MailboxPermission' is not recognized as the name of a cmdlet

If you are getting The term Add-MailboxPermission is not recognized Error in an Onpremise Exchange environment then try this:

 

Cause: If you run this Add-MailboxPermission command on Windows PowerShell then you can get this error.

 

Solution: Open Exchange management Shell on the windows server which has local Exchange running and check the behaviour by running the command in it.

 

Exchange Management shell should be used for On-premise Exchange environment if the mailbox is on on-premise.

 

If you are getting The term Add-MailboxPermission is not recognized Error in Exchange Online the try this:

Cause: This error could occur when the Windows PowerShell is not connected to Exchange Online.

 

Solution:

 

Steps to Fix The term Add-MailboxPermission is not recognized Error:

    1. Connect PowerShell to Exchange online using this detailed article.
    2. Once you are connect successfully without any error, try to run the command again and check the behaviour.
    3. Below is the syntax of the Add-MailboxPermission command:

Add-MailboxPermission
[-Identity]
-AccessRights
-User
[-AutoMapping ]
[-Confirm]
[-Deny]
[-DomainController ]
[-GroupMailbox]
[-IgnoreDefaultScope]
[-InheritanceType ]
[-WhatIf]

Example for the above command:

 

Add-MailboxPermission -Identity admin@theadmin365.com -User "Prem A" -AccessRights FullAccess -InheritanceType All -AutoMapping $false

Above command gives full access permission on admin@theadmin365.com mailbox to Prem A.

 

For more detail about the command Add-MailboxPermission, refer Microsoft Official article.

 

Do let me know if you have any question with respect to any topic in Office 365 in the comment box below.

 

Date:27/08/2023

Author: Prem

Tag: The term Add-MailboxPermission is not recognized Error

 

Leave a Comment

Your email address will not be published. Required fields are marked *