Need to remove ECP and OWA Virtual Directories

Posted on 2011-10-11
Medium Priority
Last Modified: 2012-05-12
I created my ECP and OWA virtual directories in Exchange 2010 and realized that I needed to make a change so I recreated the directories with a new name. Now I need to remove the old one "owa-ecp-notfba". How do I do this? I tried running the command:
Remove-OwaVirtualDirectory –Name “owa” –WebSiteName “OWA-ECP-NOTFBA”
but this did not work.
Question by:wassellm
LVL 26

Expert Comment

ID: 36954336
The syntax should be:
Remove-OwaVirtualDirectory -Identity “OWA-ECP-NOTFBA”

Or Remove-OwaVirtualDirectory -Identity “Servername\OWA-ECP-NOTFBA

more information about this cmdlet: http://technet.microsoft.com/en-us/library/aa998237.aspx

Accepted Solution

sumit_arora earned 2000 total points
ID: 36954734
Please first run this command
get-OwaVirtualDirectory |FL identity*
Once you know wht are the identity then run this command.  

Remove-OwaVirtualDirectory "owa (web site name)"

Web site name is case sensitive

Author Closing Comment

ID: 36956343
Thanks so much!

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
How to effectively resolve the number one email related issue received by helpdesks.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

840 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