Wednesday 9 December 2015

Unable to logon to ECP: Deleting and Creating ECP Virtual Directory in Exchange 2013

To do this open Exchange powershell.

Type:

Remove-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Default Web Site)" 

Then:

Remove-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Exchange Back End)" 

Then open command prompt.

Type: 

IISReset

------------------------------------
Then to create ECP.

Open exchange powershell and type:

New-EcpVirtualDirectory -WebSiteName "Default Web Site" -ExternalUrl "https://nameofserver/ecp" -InternalUrl "https://nameofserver/ecp"

Then type:

New-EcpVirtualDirectory -WebSiteName "Exchange Back End" -ExternalUrl "https://nameofserver/ecp" -InternalUrl "https://nameofserver/ecp"


Then open command prompt.

Type:

IISReset

-----------------------------------
IMPORTANT 

You need to make sure you put the correct permissions in place to assure you can login.

Type this into powershell:

Set-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Default Web Site)" -FormsAuthentication $true

Then open command prompt and type:

IISReset

Then open IIS:

Head to Application Pools under your exchange server name and recycle the following:

MSExchangeECPAppPool 
DefaultAppPool 
MSExchangeServicesAppPool

After this to confirm all the permissions are correct open Exchange Powershell and type:

Get-EcpVirtualDirectory -ShowMailboxVirtualDirectories : fl identifity,*url*,*auth*

Then confirm the following are correct:

NAMEOFSERVER\ecp (Default Web Site)
InternalAuthenitcationMethods{Basic, Fba}
BasicAuthentication: True
WindowsAuthentication:False
DigestAuthentication:False
FormsAuthentication:True
LiveIDAuthentication:False
AdfsAuthentication:False
OAuthAuthentication:False    
ExternalauthenitcationMethods:{Fba}

NAMEOFSERVER\ecp (Exchange Back End)
InternalAuthenitcationMethods{Ntlm,WindowsIntegrated}
BasicAuthentication: False
WindowsAuthentication:True
DigestAuthentication:False
FormsAuthentication:False
LiveIDAuthentication:False
AdfsAuthentication:False
OAuthAuthentication:False    
ExternalauthenitcationMethods:{Fba}

After confirming these are correct head to https://localhost/ecp and attempt to logon  


Tip:

*You can recycle an application by right clicking on the application and choosing recycle
*IF any of these are not the same on yours please comment   

 
 








1 comment:

  1. I take in some new stuff from it as well, a debt of gratitude is in order for sharing your data. Terry Dawson

    ReplyDelete