Tip

Recreating IIS virtual directories for OWA, OMA and Exchange ActiveSync

Exchange Server 2003 uses virtual directories in Internet Information Services (IIS) for a number of Microsoft Exchange services -- mainly, Outlook Web Access (OWA), Outlook Mobile Access (OMA) and Exchange ActiveSync:

  • Exadmin
  • Exchange
  • ExchWeb
  • Microsoft-Server-ActiveSync
  • OMA
  • Public

IIS virtual directories can get damaged or changed inappropriately. For instance, an inexperienced Exchange Server administrator may try changing them directly in the IIS administration console, when they actually must be changed in Exchange System Manager.

IIS virtual directories are not recreated automatically if they are damaged, so you need to know how to recreate them. They can be remade in a "semi-automatic" way, but Exchange Server has to be specifically commanded to do so; it doesn't "sense" that the directories are damaged or missing.

    Requires Free Membership to View

Microsoft Knowledge Base article 883380 walks through three possible ways to recreate IIS virtual directories for Outlook Web Access, Outlook Mobile Access and Exchange ActiveSync:

  1. Use the Metabase Explorer utility (available as part of the IIS 6 Resource Kit Tools) to remove the metabase entries for the IIS virtual directories. If you don't already have the Metabase Explorer installed or don't know how to use it, this is probably not the best way to go.

  2. Use the ADSUTIL.VBS script. This is probably the easiest method, because you can simply delete the IIS virtual directories from IIS Manager, use the script to purge the metabase (rather than trying to do that by hand), and then have Exchange Server recreate the directories. It's pretty foolproof, since you only need to know how to use the IIS Manager and run a .VBS script from a command line.

  3. Edit the Metabase.xml file by hand. This is probably the most dangerous and difficult way to do it, and is recommended only for experts who really know what they're doing.

In some cases the directories may take up to 15 minutes to automatically recreate; if that doesn't happen, the Exchange server and IIS server machines should both be restarted (IIS first, then Exchange Server).

About the author: Serdar Yegulalp is editor of Windows Insight, a newsletter devoted to hints, tips, tricks, news and goodies for all flavors of Windows users.

Do you have comments on this tip? Let us know.

Related information from SearchExchange.com:

  • Step-by-Step Guide: How to repair Exchange-related IIS virtual directories
  • Tip: Disappearing OWA and Exchange Server virtual directory settings
  • Tip: Forms-based authentication errors with OMA and ActiveSync
  • Tip: Exchange Server diagnostics -- digging into IIS logs
  • Reference Center: Exchange Server mobile and wireless administration tips

    Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.

    This was first published in January 2007

  • There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.