Link to home
Start Free TrialLog in
Avatar of Information Technology
Information Technology

asked on

Repair Exchange 2010 IIS virtual directories

Can someone give me some instructions on how to rebuild exchange 2010 virtual directory? I need to re-create the EWS virtual directory properly to fix OOF issue and forgot the syntax to recreate that

Thanks
Avatar of montezz
montezz

from: http://support.microsoft.com/kb/941201

For Exchange Server 2010

Step 1: Delete and then re-create the Outlook Web Access-related virtual directories
To delete the Outlook Web Access-related virtual directories, follow these steps:
Start the Exchange Management Shell.
Type the following commands. Press ENTER after you type each command.
Note These commands are case-sensitive
Remove-OwaVirtualDirectory “owa (default web site)"
Remove-ecpVirtualDirectory "ecp (default web site)"

To re-create the Outlook Web Access-related virtual directories, type the following commands at the Exchange Management Shell. Press ENTER after you type each command:
New-OwaVirtualDirectory -name "owa" -WebSiteName "Default Web Site" –InternalURL https://internalURL/owa -ExternalURL https://externalURL/owa 
New-EcpVirtualDirectory -name "ECP" -WebSiteName "Default Web Site"

Note Where the “internalURL” signifies the internal Fully Qualified Domain Name of your Client Access Server (such as CAS1.contoso.com), and the “externalURL” signifies the external URL that your users connect to in order to access OWA (such as mail.consoso.com).
Avatar of Information Technology

ASKER

Thanks for the reply. I could not see anything about the EWS directory. I'm wondering if that would work for that as well. OWA on that server works fine, it's the out of the office directory that does not work (ex: https://mail.contoso.com/ews/.....) and get an error when trying to access it from Oultook...
ASKER CERTIFIED SOLUTION
Avatar of Information Technology
Information Technology

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial