ISSUE: PowerShell command not recognize during Exchange sync

Last modified:


Overview

During synchronization of Exchange environment, exchange backend log files may show following error.

2023-06-21T11:22:24|WARN |schiller|192.168.150.254|T:65 |ThreadPools               | ||0   
 |a0aec62f-ae3d-4216-af35-2a81feff03ee| ||An error occured in PSLibrary
EXCEPTION: System.Exception: The term 'Get-RemoteMailbox' 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.ThreadPools.ExecuteWithResultCheck (SmartThreadPool threadPool, Func`1 executeInThreadpool)
2023-06-21T11:22:24|ERROR|schiller|192.168.150.254|T:65 |Execute_GetExchangeHybridOnline | ||0 |a0aec62f-ae3d-4216-af35-2a81feff03ee| ||Error in Execute_GetExchangeHybridOnline Main Process. Please Reprocess to send results again
EXCEPTION: System.Exception: The term 'Get-RemoteMailbox' 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.ThreadPools.ExecuteWithResultCheck (SmartThreadPool threadPool, Func`1 executeInThreadpool)
at cloudficient.EVComplete.Module.Exchange.Executors.Execute_GetExchangeHybridOnline.d__1.MoveNext() in E:\_w\o\1\2\s\EV2O365.OnPrem.Exchange\Executors\Execute_GetExchangeHybridOnline.cs:line 102

Solution

Exchange on-prem Admin account is missing required permissions. Please assign following permission to that account:

Roles required: 

  • View-only Organization Management
  • Recipient Management

Is this article helpful for you?