Category Archives: IIS

Recreate Exchange IIS Virtual Directories

Applies to: IIS, Exchange Server 2007

If you’re in need to recreate the IIS virtual directories of Exchange Server, below commands will do exactly that. Launch the Exchange Management Shell on the CAS server and enter below commands as needed.

  • “Exchange (Default Web Site)”
    Remove-OwaVirtualDirectory “exchange (Default Web Site)”

    New-OwaVirtualDirectory “exchange” -OwaVersion Exchange2003or2000 -VirtualDirectoryType Mailboxes -WebSiteName “Default Web Site”

  • “Exchweb (Default Web Site)”
    Remove-OwaVirtualDirectory “exchweb (default web site)”

    New-OwaVirtualDirectory “exchweb” -OwaVersion Exchange2003or2000 -VirtualDirectoryType Exchweb -WebSiteName “Default Web Site”

  • “OWA (Default Web Site)”
    Remove-OwaVirtualDirectory “owa (default web site)”

    New-OwaVirtualDirectory -name “owa” -OwaVersion Exchange2007 -WebSiteName”Default Web Site”

  • “Public (Default Web Site)”
    Remove-OwaVirtualDirectory “public (default web site)”

    New-OwaVirtualDirectory “public” -OwaVersion Exchange2003or2000 -VirtualDirectoryType PublicFolders -WebSiteName “Default Web Site”

Final step: Restart the IIS service and WWW Publishing service on the server.