Error “Failed To Connect To An Exchange Server In The Current Site” While Running Exchange 2013 Shell

hi

I've installed Exchange 2013 on Windows Server 2012 and it reported as successfully installed. I see no issues with Exchange Setup Logs.

On trying to connect to Exchange Management Shell I receive errors and I am unable to connect.

New-PSSession : [wes-ex-01.XXxxxxxxxxxx.net] Connecting to remote server wes-ex-01.xxxxxxxxx.net failed
with the following error message : The WS-Management service does not support the request. 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

i found this as answer for almost everyone but it didnt work for me

%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir -enable

i run this command for Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 and this is what i am reciveing

******************************************************
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web applica
tions to use this version of ASP.Net.
This option is not supported on this version of the operating system.  Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog,  the Server Manager management tool, or the dism.e
xe command line tool.  For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929) without changing existing web appl
ications to use this version of ASP.Net.
******************************************************

i also run
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -ir -enable
but this time i am reciving this :

******************************************************
Start installing ASP.NET (2.0.50727).
.............................
An error has occurred: 0x80004005 Unspecified error

******************************************************

any I

June 20th, 2013 9:29am

Hi

thanks for your reply

but it didn't work for me (I mention in my question)

I am getting this :

%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir -enable

******************************************************
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web applica
tions to use this version of ASP.Net.
This option is not supported on this version of the operating system.  Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog,  the Server Manager management tool, or the dism.e
xe command line tool.  For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929) without changing existing web appl
ications to use this version of ASP.Net.
******************************************************

I also run
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -ir -enable

******************************************************
Start installing ASP.NET (2.0.50727).
.............................
An error has occurred: 0x80004005 Unspecified error

******************************************************

June 21st, 2013 1:27am

Hi

please install ASP.NET 4.5 within Server Manager Add/Remove Features.

Peter

Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2013 12:17pm

Hi

please install ASP.NET 4.5 within Server Manager Add/Remove Features.

Peter

July 2nd, 2013 12:17pm

Hi

please install ASP.NET 4.5 within Server Manager Add/Remove Features.

Peter

Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2013 3:17pm

Thanks Peter

I uninstalled .NET 4.5 and 3 as a result when computer restarted it was a core server with out PowerShell so what I did was

Installing .NET and restart the server

       Dism.exe /online /enable-feature /featurename:NetFX3 /all /source:c:\net35 /limitaccess

      PS C:\> Add-WindowsFeature -name PowerShell-ISE,Server-Gui-Mgmt-Infra,Server-Gui-Shell Restart

it resolved my issue

July 2nd, 2013 5:25pm

Glad that your error was resolved :-)

Cheers

Free Windows Admin Tool Kit Click here and download it now
July 8th, 2013 5:33am

Hi there Peter

I had the exact same issue as you, my powershell would not run and i could not load the ECP, throwing up an http 403 error.

After looking around i found that quite a few people had the same issue, but i found (for me) it really was quite a simple fix. 

It seems Exchange Pre Req didn't install a few features or even let you know about them! the two required are the following.

Add Feaures & Roles

Server Roles --> Web Server (IIS) --> Web Server --> Application Development --> .NET Extensibility 4.5 & ASP.NET 4.5

Once i installed both features my admin page loaded and my Powershell worked fine :)

Was scratching my head for a while on this but really a simple fix! hope this helps anyone else who has the same issue.

Regards

Mike

  • Proposed as answer by MichaelBacon 16 hours 15 minutes ago
April 22nd, 2015 11:12am

Hi there Peter

I had the exact same issue as you, my powershell would not run and i could not load the ECP, throwing up an http 403 error.

After looking around i found that quite a few people had the same issue, but i found (for me) it really was quite a simple fix. 

It seems Exchange Pre Req didn't install a few features or even let you know about them! the two required are the following.

Add Feaures & Roles

Server Roles --> Web Server (IIS) --> Web Server --> Application Development --> .NET Extensibility 4.5 & ASP.NET 4.5

Once i installed both features my admin page loaded and my Powershell worked fine :)

Was scratching my head for a while on this but really a simple fix! hope this helps anyone else who has the same issue.

Regards

Mike

  • Proposed as answer by MichaelBacon Wednesday, April 22, 2015 3:11 PM
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 3:10pm

This was the trick for me. Thanks great directions.
August 30th, 2015 7:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics