ISSUE: The term 'Enable-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program
Last modified:
Overview
We EVC trying to enable Archive mailbox for the user we may receive the following error:
From the EXCHANGE logs:
2024-12-10T11:52:08|ERROR|mcb |10.101.1.70 |T:191|PsBaseWrapper | ||0 |ec35bbec-0d3b-4453-9542-11a179642cd6| ||The term 'Enable-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.
2024-12-10T11:52:08|WARN |mcb |10.101.1.70 |T:191|PsBaseWrapper | ||0 |ec35bbec-0d3b-4453-9542-11a179642cd6| ||An internal error occured during ExecuteScriptInternal.
EXCEPTION: System.Exception: The term 'Enable-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 cloudficient.Common.Powershell.PsBaseWrapper.ExecuteScriptInternal(PowerShell powershell, String script, Dictionary`2 parameters, Boolean throwOnErrors)
at cloudficient.Common.Powershell.PsBaseWrapper.ExecuteScript(SessionPoolType poolType, String script, Dictionary`2 parameters, Boolean throwOnErrors)
Cause
This happen because Exchange onprem admin account missing required permissions.
Solution
Assign required permission for the Exchange Admin account from the requirement list: