question

phuongnguyenvan avatar image
0 Votes"
phuongnguyenvan asked joyceshen-MSFT commented

Exchange Management Shell EMS error Exchange 2019

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][1]

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

Help me connect to EMS Exchange
thanks
[1]: /answers/storage/attachments/139141-2021-10-09-16-00-03.png
[2]: /answers/storage/attachments/139142-2021-10-09-16-07-20.png

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joyceshen-MSFT avatar image
0 Votes"
joyceshen-MSFT answered phuongnguyenvan commented

Hi @phuongnguyenvan

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@joyceshen-MSFT
Thanks so much
i will try to gude and report it
Thanks

0 Votes 0 ·
imamitsingh avatar image
1 Vote"
imamitsingh answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

phuongnguyenvan avatar image
0 Votes"
phuongnguyenvan answered joyceshen-MSFT commented

Dear @joyceshen-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



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @phuongnguyenvan

You could try using remote powershell to connect to your server firstly.

Detailed steps can be seen here: Connect to Exchange servers using remote PowerShell


0 Votes 0 ·