Thursday 14 February 2019

Resolved: Unable to connect Exchange mangement shell

Environment:
Exchange Server 2013 CU20 fresh installed with multi role (mailbox and CAS) on a Windows server 2012 R2.

ISSUE:
I was unable to connect Exchange management shell.

Error: While trying to open/connect Exchange management shell getting the following errors.

VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.: mbxcas.pt.test.com
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
[PS] C:\Windows\system32>
Resolutions:

There was time difference of 12 minutes between the Exchange Server and the DC, after correcting/synchronizing the time on exchange server, the issue was resolved.

6 comments:

  1. write from Azerbaijan land of fire

    ReplyDelete
  2. Nawaz you are very good boy

    ReplyDelete
  3. I was unable to connect Exchange management shell.

    VERBOSE: Connecting to MCRHRDIPMX.MCRHRDI.GOV.IN.
    New-PSSession : [mcrhrdipmx.mcrhrdi.gov.in] Connecting to remote server mcrhrdipmx.mcrhrdi.gov.in failed with the
    following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
    VERBOSE: Connecting to MCRHRDIIPMX.MCRHRDI.GOV.IN.
    New-PSSession : [mcrhrdiipmx.mcrhrdi.gov.in] Connecting to remote server mcrhrdiipmx.mcrhrdi.gov.in failed with the
    following error message : The WinRM client cannot process the request because the server name cannot be resolved. For
    more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    gTransportException
    + FullyQualifiedErrorId : ComputerNotFound,PSSessionOpenFailed
    VERBOSE: Connecting to MCRHRDISMX.MCRHRDI.GOV.IN.
    New-PSSession : [mcrhrdismx.mcrhrdi.gov.in] Connecting to remote server mcrhrdismx.mcrhrdi.gov.in failed with the
    following error message : WinRM cannot process the request. The following error occurred while using Kerberos
    authentication: Cannot find the computer MCRHRDISMX.MCRHRDI.GOV.IN. Verify that the computer exists on the network and
    that the name provided is spelled correctly. For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    gTransportException
    + FullyQualifiedErrorId : NetworkPathNotFound,PSSessionOpenFailed
    VERBOSE: Connecting to MCRHRDIPMX.MCRHRDI.GOV.IN.
    New-PSSession : [mcrhrdipmx.mcrhrdi.gov.in] Connecting to remote server mcrhrdipmx.mcrhrdi.gov.in failed with the
    following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
    VERBOSE: Connecting to MCRHRDIIPMX.MCRHRDI.GOV.IN.
    New-PSSession : [mcrhrdiipmx.mcrhrdi.gov.in] Connecting to remote server mcrhrdiipmx.mcrhrdi.gov.in failed with the
    following error message : The WinRM client cannot process the request because the server name cannot be resolved. For
    more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.:

    ReplyDelete