Exchange Management Shell EMS error Exchange 2019

Phuong Nguyen 166 Reputation points
2021-10-09T13:42:31.99+00:00

Dear MS Support
On a 2019 Exchange server I have issues running the Management Shell, as it is started it throws an error related to RBAC:

New-PSSession : [mbx1902.domain.local] Processing data from remote server mbx1902.domain.local failed with the following error
message: [ClientAccessServer=MBX1902,BackEndServer=mbx1902.domain.local,RequestId=2a23c736-9602-4003-85ee-2f5cbf67bde8,TimeS
tamp=10/9/2021 10:00:58 AM]
[AuthZRequestId=3d6695a8-a97d-4a8b-a262-929bd3d98202][FailureCategory=AuthZ-RemotePowerShellNotEnabledException] Your attempt to connect to this Exchange server was denied because your account isn't enabled for Remote PowerShell. Your Exchange administrator can use the Set-User -RemotePowerShellEnabled command to enable your account
. For more
information, see the about_Remote_Troubleshooting Help topic.

139141-2021-10-09-16-00-03.png

Event log id: 23, 258
139142-2021-10-09-16-07-20.png

Help me connect to EMS Exchange
thanks

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,339 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,641 Reputation points
    2021-10-11T05:30:14.747+00:00

    Hi @Phuong Nguyen

    Please check the solution provided in the official document: Error (The connection to the specified remote host was refused) when you try to start Exchange Management Shell or Exchange Management Console

    1.Make sure that the MSExchangePowerShellAppPool application pool is running. If the pool is running, try to recycle it.
    2.Make sure that the user who is trying to connect has Remote PowerShell Enabled status.

    Set-User "username" -RemotePowerShellEnabled $True  
    

    3.Make sure that WinRM is configured correctly on the server.

    In addtion, in Active Directory Users and Computers you will find a new container called Microsoft Exchange Security Groups. If you locate the group called Organization Management add your computer to this group and check if this resolves it.


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

    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.

2 additional answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2021-10-11T05:30:50.533+00:00
    1 person found this answer helpful.
    0 comments No comments

  2. Phuong Nguyen 166 Reputation points
    2021-10-23T13:25:08.91+00:00

    Dear @Joyce Shen - MSFT
    I have following step by step but can not resolve my problem.
    i still error can not logon EMS console.
    To run Set-User "username" -RemotePowerShellEnabled $True
    143132-2021-10-23-20-24-18.png
    143059-2021-10-23-20-22-32.png
    must logon EMS to run. I can not logon run and run

    Please help me
    thanks