Exchange 2013 - reset virtual directories - ecp login failure

Posted on 2013-01-29
Medium Priority
Last Modified: 2017-04-05
For some reason I've changed authentication settings for some virtual directories directly in IIS (enabling / disabling "Basic Authentication", "Windows Authentication"...) I know, I've made mistake!
Now I'm unable to login to https://exchangeurl/ecp. Although I'm certain that I've entered accurate username/password, I'm constantly getting the same login page with message that entered credentials are not ok.
I suppose that it can be solved if I can reset all virtual directories in their original state. So my question is:
How can I reset virtual directories?
Is there any documentation on how to setup virtual directory authentication for all virtual directories?
Or one can suggest the other way for me to successfully login to url/ecp, and reset virtual directories from there.
Of course, keep in mind that I'm unable to login to url/ecp, so I must find a way to resolve this using other tools (powershell...)
Question by:fd4u
  • 2
  • 2
  • 2
  • +1

Expert Comment

ID: 38831197

Accepted Solution

vSolutionsIT earned 2000 total points
ID: 38831215
You can check the authentication settings by using get-ecpvirtualdirectory | fl command and then may change the authentication settings by using set-ecpvirtualdirectory command.

get-ecpvirtualdirectory :


you can remove and then recreate ecp virtual directory using below commands as well. but before that note down all the settings reported by get-ecpvirtualdirectory.



Author Comment

ID: 38831314
Thanks for the answers guys. I'll accept those, but just one more thing: if I delete / recreate ecp directory will I loose some other settings (mailboxes, etc.)?
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!


Author Closing Comment

ID: 38831386
It was solution I've searched for. Thanks

Expert Comment

ID: 39240879
For similar issue it didn't help for me

Expert Comment

ID: 39240888
Initially I was facing issue earlier only with OWA on E2013(Single box), was failing with below error,
Something went wrong
A mailbox couldn't be found for NT AUTHORITY\SYSTEM. If the problem continuous contact your helpdesk.

So we reset OWA virtual directory using ECP console but didn't help so rebooted E2013 server and found both OWA & ECP stopped working.

But now if we try to browse OWA or ECP console, we get credential page and after putting credential, I get below error,
The user name or password you entered isn't correct. Try entering it again.

I can browse other virtual directories using same credential but not OWA/ECP

Outlook works fine.

Created new mailbox but same issue
LVL 17

Expert Comment

by:Jason Crawford
ID: 42079963
You can recreate the vDirs, but I would think performing a point in time restore before installing the CU would be a better option.  With that said I'm sure you wouldn't be on this website if you had a backup.


Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What is the biggest problem in managing an exchange environment today? It is the lack of backups, disaster recovery (DR) plan, testing of the DR plan or believing that it won’t happen to us.
Configure external lookups on for external mail flow on Exchange 2013 and Exchange 2016.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question