Remove an Outlook Web App Virtual Directory
Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2
You can use the Shell to remove a Microsoft Office Outlook Web App virtual directory.
Don't use Internet Information Services (IIS) Manager to remove an Outlook Web App virtual directory. Using IIS Manager to do this may result in what's known as an "orphan" virtual directory. Instead, use the procedure in this topic. You can use the same procedure to remove orphan virtual directories.
If the last Outlook Web App virtual directory to be removed was an orphan virtual directory, you must manually remove the Outlook Web App ISAPI filter from the associated Web site. See the procedures in this topic for how to find orphan virtual directories, and manually remove them.
Looking for other management tasks related to Outlook Web App virtual directories? Check out Managing Outlook Web App Virtual Directories.
Use the Shell to remove an Outlook Web App virtual directory
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Outlook Web App virtual directories" entry in the Client Access Permissions topic.
This example deletes a virtual directory named Legacy
from a site named "second Web site
" on the server named Contoso
.
Remove-OwaVirtualDirectory -identity "Contoso\Legacy (second Web site)"
Use the Shell to find orphan virtual directories
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Outlook Web App virtual directories" entry in the Client Access Permissions topic.
This example finds any orphan virtual directories.
Get-OwaVirtualDirectory | ? { ![DirectoryServices.DirectoryEntry]::Exists($_.MetabasePath) }
Use IIS Manager to remove the ISAPI filter when the last Outlook Web App virtual directory to be removed was an orphan
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "IIS Manager" entry in the Client Access Permissions topic.
Open IIS Manager.
Navigate to the Web site that hosted the Outlook Web App virtual directory, right-click the Web site name, and then click Properties.
Click the ISAPI filters tab.
Remove the Exchange OWA Cookie Authentication ISAPI filter entry.
For more information about syntax and parameters, see Remove-OwaVirtualDirectory.
Other Tasks
After you remove an Outlook Web App virtual directory, you may also want to:
© 2010 Microsoft Corporation. All rights reserved.