Connect Exchange Shell Error Exchange 2019

asif ahamed 201 Reputation points
2021-08-12T01:26:35.007+00:00

Please help. I newly installed AD and Exchange server in my lab. Google search did not help

Enter-PSSession ex01
[ex01]: PS C:\Users\administrator.TEKSITE\Documents> Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
[ex01]: PS C:\Users\administrator.TEKSITE\Documents> Get-ExchangeServer
Active Directory operation failed on . The supplied credential for 'TEKSITE\Administrator' is invalid.

  • CategoryInfo : NotSpecified: (:) [], ADInvalidCredentialException
  • FullyQualifiedErrorId : [Server=EX01,RequestId=01925f82-5048-4f9d-b0c3-e5cb0dc6e84f,TimeStamp=8/12/2021 1:17:09 AM] [FailureCategory=Cmdlet-ADInvalidCredentialException] E294CCB6
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,670 questions
{count} vote

1 answer

Sort by: Most helpful
  1. KyleXu-MSFT 26,271 Reputation points
    2021-08-13T02:00:26.63+00:00

    @asif ahamed

    "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn" isn't supported. If you want to control Exchange server with command, you need to open EMS and run command in it. Make sure this tool could run successfully:
    122916-qa-kyle-09-53-39.png

    If you want to connect to Exchange server remotely, you can follow this article: Connect to Exchange servers using remote PowerShell


    If the response 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.