Need to remove ECP and OWA Virtual Directories

Posted on 2011-10-11
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

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

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

    more information about this cmdlet:
    LVL 6

    Accepted Solution

    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

    Thanks so much!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
    Use email signature images to promote corporate certifications and industry awards.
    In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now