Knowledgebase: Exchange 2007
Creating the Exchange virtual directory for Exchange 2007
Posted by Heather Burkett on 17 June 2010 08:47 PM

If you are having issues getting Exchange 2007 to work for PIM, and it is found that you do not have the Exchange Virtual Directory, then the Exchange and Public Virtual Directories can be re-created. 

First, look in the EMC (Exchange Management Console) under Server Configuration > Mailboxes > WebDav tab.  Is there an Exchange / Public Directory listed here?  If so, it will show the web site in IIS in which these Virtual Directories are located.  Proceed to IIS to confirm that this web site exists, and it is currently running.  If this web site is NOT running, start it. 

If the virtual directories are not listed, you can re-create them.  This will restore the links to the Mailbox role within Exchange 2007.

Here are the cmdlets to run in order to re-create the virtual directories of “Exchange” and “Public” within Exchange 2007:

Exchange Directory

new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Mailboxes" -DomainController dc_name

** Replace “dc_name” with the actual domain controller name

Public Directory

new-OwaVirtualDirectory -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "PublicFolders" -DomainController dc_name

** Replace “dc_name” with the actual domain controller name

 

If you had the Exchange / Public Virtual Directories created, but they needed to be re-created with the above cmdlets, then you can also remove the old “dead” directories with the following cmdlets:

 

Remove-owavirtualdirectory –identity “<virtualdirectoryname> (Web Site Name)”

** For example:  remove-owavirtualdirectory –identity “Exchange2007 (SBS Web Applications)”

** For example:  remove-owavirtualdirectory –identity “Public (SBS Web Applications)”