Restoring Exchange Virtual Directories in Windows SBS 2011

Windows Small Business Server is an interesting product. It’s Windows 2008 R2 + SQL Server + Exchange 2010 packaged into a single OS installer, with some additional GUI to make it a all-in-one server. I have one running at home to learn about Windows Servers and Active Directory things, while serving my imaginary company – Planet Express. Main goal was to make use of the Exchange Server and its powerful calendar and push email.

A downside of SBS2011 is that, since it’s an all-in-one package, you don’t get to make a lot of customisations that you may get if you install separately.

One item that bugged me was the name of the website in IIS Web Server : the “Default Web Site”. It’s such a generic and bad name that I just couldn’t ignore. So one day I decided to just change it… Well.. naturally, I lost my Outlook Web Access and Exchange Console started shouting at me for missing virtual directories in IIS.

Here’s what I had to do in order to restore them, using the new name.

Remove all existing Virtual Directories by browing to Server Configuration -> Client Access in Exchange Management Console, and clicking on Reset Virtual Directory. If you already have changed the website name in IIS, this wizard will delete the existing virtual directories while failingto restore them due to mismatching site name.

Go to IIS Manager, confirm the previous virtual directories are gone.

Open Exchange Management Shell, and enter following commands one by one. No arguments are needed; SBS2011 will use the correct default values to create them under the renamed default web site.