Cannot change WebServicesVirtualDirectory to follow MS Kb 940726

Posted on 2008-10-20
Medium Priority
Last Modified: 2012-06-22
I am following the steps in the MS kb 940726, but I cannot complete the EWS InternalUrl step.  I suspect that the problem is the fact that the external URL is very different from the internal FQDN.   Using xxx to equate to the company name, the external is https://owa.xxxind.com while the internal is xxxmail.xxx.com

In the management shell, I issue the command:
Set-WebServicesVirtualDirectory -Identity "xxxmail.xxx.com\EWS (Default Web Site)" -InternalUrl https://owa.xxxind.com/ews/exchange.asmx

I get the error:
Set-WebServicesVirtualDirectory : A failure occurred while trying to update metabase properties.
At line:1 char:32
+ Set-WebServicesVirtualDirectory <<<< -Identity "xxxmail.xxx.com\EWS (Default Web Site)" -InternalUrl https://owa.xxxind.com/ews/exchange.asmx
Question by:xogent
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
  • 3
LVL 31

Expert Comment

ID: 22767435
Just a guess.  Do you have a Host Header name configured for your Default Web Site?

Author Comment

ID: 22769141
I think I know what you're asking.  The 2 site bindings, http & https, both have no host name listed.  Also, this is running on a Server 2008 platform, if that makes a difference.

The http binding shows: Type: http,  IP address: All Unassigned,  Port: 80,  Host name: (this field is blank)
Https: Type: https,  IP address: All Unassigned,  Port: 443,  Host name: (this field is blank and greyed out),  SSL certificate: Xxx Industries - Outlook Anywhere
LVL 31

Expert Comment

ID: 22775805
Can you run the Get-WebServicesVirtualDirectory cmd successfully?
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.


Author Comment

ID: 22775906
When I tried, I got this:
Get-WebServicesVirtualDirectory : Unable to create Internet Information Services (IIS) directory entry. Error message is: Access is denied.
. HResult = -2147024891.
At line:1 char:31
+ Get-WebServicesVirtualDirectory <<<<
LVL 31

Accepted Solution

LeeDerbyshire earned 2000 total points
ID: 22775939
Are you sure you are logged in with an account that has permission to do IIS administration; which is what the EMC console is doing on your behalf?  Easiest way to check is to go into IIS Manager, and see if the EWS VDir actually exists, then look at some of its properties.

Author Comment

ID: 22776529
You're right.  I had not launched the shell as an admin.

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

777 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