[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Cannot recreate OWA virtual directory

Posted on 2014-01-22
Medium Priority
Last Modified: 2014-01-22
HI all,

I have this SBS2011 with Exchange2010 with a missing OWA virtual directory.  It simply isn't there.

In EMC, under Server Configuration\Client Access, the Outlook Web App is blank.
If I click on "Reset Virtual Directory" I cannot see OWA.
Using the shell, I get the following errors :

[PS] C:\Windows\system32>New-OwaVirtualDirectory -InternalUrl 'https://SERVER/owa' -WebSiteName 'Default Web Site'
Creating a new session for implicit remoting of "New-OwaVirtualDirectory" command...
An error occurred while creating the IIS virtual directory 'IIS://SERVER.xxxx.local/W3SVC/1/ROOT/owa' on 'SERVER'.
    + CategoryInfo          : InvalidOperation: (SERVER\owa (Default Web Site):ADObjectId) [New-OwaVirtualDirectory], InvalidOperationException
    + FullyQualifiedErrorId : BAA4CBDB,Microsoft.Exchange.Management.SystemConfigurationTasks.NewOwaVirtualDirectory

[PS] C:\Windows\system32> New-OwaVirtualDirectory -name "owa" -WebSiteName "Default Web Site" -internalURL https://mail.xxxxx.com.au/owa -ExternalURL https://mail.xxxxx.com.au/owa
An error occurred while creating the IIS virtual directory 'IIS://SERVER.xxxxx.local/W3SVC/1/ROOT/owa' on 'SERVER'.
    + CategoryInfo          : InvalidOperation: (SERVER\owa (Default Web Site):ADObjectId) [New-OwaVirtualDirectory], InvalidOperationException
    + FullyQualifiedErrorId : BAA4CBDB,Microsoft.Exchange.Management.SystemConfigurationTasks.NewOwaVirtualDirectory

[PS] C:\Windows\system32>Get-OwaVirtualDirectory -Identity 'SERVER\Owa (Default Web Site)'
The operation couldn't be performed because object 'SERVER\Owa (Default Web Site)' couldn't be found on 'SERVER.xxxxx.local'.
    + CategoryInfo          : NotSpecified: (:) [Get-OwaVirtualDirectory], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 4D879422,Microsoft.Exchange.Management.SystemConfigurationTasks.GetOwaVirtualDirectory

Under IIS, in \Default Web Site I cannot see OWA
Under ADSIEdit, in CN=HTTP,CN=Protocols,CN=SERVER,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxxxx,DC=local there is no OWA either.
Under IIS Metabase Explorer, under LM\W3SVC\1\ROOT there is no OWA either.

I just about ran out of commands I can throw at this server, anyone can help please ?

Question by:CBM Corporate
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 27

Expert Comment

ID: 39799316
Try reinstalling CAS

Goto Control panel--> Click exchange2010-->Click Remove
Click next and untick "Client Access..." --> Click next.
Once finished restart the server
Insert the Exchange2010 DVD
Start setup tick the "Client access.." and install again and see what happens

Author Comment

by:CBM Corporate
ID: 39799319
Mmh reinstalling the CAS role is what I was trying to avoid.  No other way ?

Accepted Solution

Mahesh Sharma earned 1000 total points
ID: 39799409
Check this, you may be facing the same issue:


    Open a command prompt.

    Type the following:

    cscript c:\inetpub\adminscripts\adsutil.vbs SET /w3svc/AppPools/Enable32BitAppOnWin64 False

    Press enter
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf


Author Comment

by:CBM Corporate
ID: 39801877
Yeah doe that too, then an IISreset, then tried again the New-OwaVirtualDirectory again, no luck.  Error message isn't very helpful as to what is missing.  I really don't want to re-install the CAS role,. there's gotta be a way to "clean" the metadata then rebuild the VD.

Author Closing Comment

by:CBM Corporate
ID: 39801932
Finally !
I basically followed this one http://blogs.dirteam.com/blogs/davestork/archive/2010/12/23/fixing-a-broken-owa-2010-virtual-directory.aspx
- Recreate the AppPool in IIS
- Recreate the Application in IIS
- Recreate the object in ADSI Edit
- IISReset
- in EMC, reset the Virtual Directory

Tadaa :)
Thanks everyone for trying.
LVL 27

Expert Comment

ID: 39802096
Glad to know it is fixed and thanks for posting the solution

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

649 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