Getting error while accessing exchange powershell

Anusha S 6 Reputation points
2021-10-27T08:25:10.193+00:00

I am getting below error while accessing exchange powershell, can anyone help
144058-image.png

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,788 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 113.5K Reputation points MVP
    2021-10-27T09:55:30.41+00:00

    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

    0 comments No comments

  2. 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.