Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-07-23

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.

Copy Code
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.

Copy Code
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.

  1. Open IIS Manager.

  2. Navigate to the Web site that hosted the Outlook Web App virtual directory, right-click the Web site name, and then click Properties.

  3. Click the ISAPI filters tab.

  4. 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: