Unable to run HCW due to "Get-ExchangeServer" command not being found.

cristobal martinez 21 Reputation points
2022-01-10T23:42:22.81+00:00

I'm working on getting a Hybrid Exchange going with a Exchange 2013 on Server 2012 R2. Everything is up-to-date and I have the proper credentials.
If I open up the Exchange Console Shell I'm unable to run 'Get-ExchangeServer'. The Command is not found. I'm able to open up Exchange Console Shell and add the Snappin to run 'Get-ExchangeServer'.
If I open up Powershell, its the same story, I can get a remote pssession and I'm unable to run 'Get-ExchangeServer' until I add the snappin.
My problem comes in when I try to run the HCW...I can successfully connect to the 365 Tenant side but the On-Prem portion stops with error "Command Not Recognized. Please verify you have the correct credentials". This account is domain admin with Org management. I can run this command with zero issue...once I add the snappin of course.
Looking at the HCW Logs, I can see the error where it tries to run "Cmdlet=Get-ExchangeServer" and fails due to missing command.
My Ask is...what the heck can I do about this? I have tried to create a remote session while running the HCW with no joy, I went to a new server and setup a remote connection to the exchange server and validated I can run the command after adding the snappin...again same error.
I have never opened up a Exchange Command Shell that started out missing the 'Get-ExchangeServer' command! I'm at a lost on how I can fix this...this is a client server so my options are limited in getting this fixed...if there is a workaround I would greatly appreciate it; or if there is a specific solution I can run it past my clients to get fixed. I'm assuming the Exchange Management Tools are not installed? I'm afraid to check without causing a hiccup to a production server.

Thanks for the help!

Windows 365 Enterprise
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,384 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,500 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,998 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,246 Reputation points
    2022-01-11T06:15:31.88+00:00

    @cristobal martinez

    I would suggest you have a check about permission for the mailbox you used. Make sure it contained in those permission groups below:
    163811-qa-kyle-14-12-37.png

    If any permission is missed, try to add it back to your administrator account. Then reopen EMS (Exchange Management Shell) and check again.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Manu Philip 17,671 Reputation points MVP
    2022-01-11T05:30:19.21+00:00

    Make sure that you are logged in to the server using domain account. Open command prompt and type whoami and see the result like 'domainname\username' to ensure that.


    If the Answer is helpful, please click "Accept Answer" and upvote it

    0 comments No comments