Exchange powershell cannot be connected

姚黎忠 81 Reputation points
2023-09-07T08:00:28.9333333+00:00

My Exchange server was once disjoined from the domain, and later I re-joined it to the domain. Now, I am unable to connect to Microsoft Exchange using PowerShell

the picture says :connect to remote server failure 微信截图_20230907155706

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

Answer accepted by question author
  1. Jarvis Sun-MSFT 10,251 Reputation points Microsoft External Staff
    2023-09-14T08:26:01.3566667+00:00

    Hi @姚黎忠,

    Check if you have enabled remote PowerShell access for the account you are using to connect to the Exchange server. If not, enable it by running the following command in PowerShell:

    Set-User -Identity <username> -RemotePowerShellEnabled $true

    And restart IIS (Internet Information Services) on your Exchange server.


    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 additional answer

Sort by: Most helpful
  1. Andy David - MVP 159.7K Reputation points MVP Volunteer Moderator
    2023-09-07T13:15:20.5866667+00:00

    Verify the Exchange Server is a member of the following security groups:

    Exchange Trusted Subsystem

    Exchange Servers

    Exchange Install Domain Servers

    Also make sure the "Exchange Trusted Subsystem" is a member of the local administrators group on the Exchange Server itself.


Your answer

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