Post the full error message and the exact steps you are following in order to connect. The above seems to suggest you are trying New-PSSession directly, the preferred method is to use the V2 module: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
Getting error while accessing exchange powershell
I am getting below error while accessing exchange powershell, can anyone help
2 answers
Sort by: Most helpful
-
-
Joyce Shen - MSFT 16,686 Reputation points
2021-10-28T02:16:47.907+00:00 Hi @Anusha S
What's your Exchange server and CU version? Is this a newly installed Exchange server, or you made any changes on your server recently may cause this issue? And like michev suggest above, it's better to provide complete error message you received for further troubleshooting.
Below are some reasons may cause your issue, you could have a check.
1.Please check if there is any proxy configuration on your server. If yes, by pass them.
netsh winhttp set proxy proxy.ex.contoso.com:3128 bypass-list=.ex.contoso.com;10.2.And another reason may be related to 301 IIS redirection, like the issue in this thread: Exchange Management Shell Error
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.3.See if the official document any help: Error (The connection to the specified remote host was refused) when you try to start Exchange Management Shell or Exchange Management Console
If suggestions above are not able to resolve your issue, please check the application log as well to get more information.
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.