question

asifA-5465 avatar image
0 Votes"
asifA-5465 asked KyleXu-MSFT commented

Connect Exchange Shell Error Exchange 2019

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

office-exchange-server-administrationoffice-exchange-server-connectivityoffice-exchange-server-deployment
· 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.

I did the windows update and exchange CU10 update reboot still the same. Can someone please help me
I enabled PSRomoting Exchange server

Still the same

0 Votes 0 ·

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@asifA-5465

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


· 3
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.

i tried that too. i turned off the firewall in Exchange server still the same
I did also winrm quickconfig and Enable psremoting too. I am running as domain admin

PS C:\Users\Administrator> New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://ex01/powershell -Authentication kerberos -AllowRedirection
New-PSSession : [ex01] Connecting to remote server ex01 failed with the following error message : The WinRM client
cannot process the request. It cannot determine the content type of the HTTP response from the destination computer.
The content type is absent or invalid. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ht ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed

0 Votes 0 ·

What is the error message when you open EMS, could you provide a screenshot about it? Could use other Exchange function such ECP successfully?

0 Votes 0 ·

Any update about this thread now? Could you open ECP successfully?

0 Votes 0 ·