VDI XP Cleanup Script

Microsoft SBS 2003 IIS Reinstall

Prologue:

There are plenty of folks out there (myself included at one time) who don’t have a clue about the ease of deploying a Microsoft 2003 Small Business Server. The wizards are there for a reason, they are not to be mocked or left for lesser engineers. Since my reeducation that “wizards are good” in SBS I’ve had nothing but success with what seems to be the most robust and complete product Microsoft has ever produced. That being said I’ve also had to learn how to fix others mistakes and even some of my own past mistakes. The biggest issue with not following the wizards is that all the IIS features (Sharepoint, Outlook Web Access, RPC-HTTPS, Remote Web Workplace) are not configured upon install. And going back and adding each feature in after the fact is a wicked pain and is not integrated with the easy to use Server Manager. After much scouring, the following steps were found on a Microsoft Newsgroup feed.

Follow the steps below to remove and reinstall IIS

  1. Control Panel -> Add Remove Program -> Windows Small Business Server 2003. Set Server Tools to Maintenance. Set Intranet to Remove
  2. Control Panel -> Add Remove Program -> Microsoft SQL Server Desktop Engine (SHAREPOINT) -> Remove. (This step is not required if you believe the SharePoint database is installed correctly.)
  3. Delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftSmallBusinessServerIntranet
  4. Delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL ServerSHAREPOINT
    1. (!!!!!Do NOT delete this key if you did not remove Microsoft SQL Server Desktop Engine (SHAREPOINT) in the pervious steps !!!!!)
  5. Delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftShared ToolsWeb Server ExtensionsPortsPort /LM/W3SVC/4:
    1. (Do not delete “Port /LM/W3SVC/1:” because it is FrontPage Server Extension 2002 which is installed on the Default WebSite.
    2. If you see additional “Port /LM/W3SVC/X:”, backup the keys first and then remove them)
  6. Rename C:Program FilesMicrosoft SQL ServerMSSQL$SHAREPOINT to MSSQL$SHAREPOINT.OLD
    1. (!!!!!Do NOT rename this folder if you did not remove Microsoft SQL Server Desktop Engine (SHAREPOINT) in the pervious steps !!!!!)
  7. Control Panel -> Add Remove Program -> Add/Remove Windows Components.
  8. Uncheck Application Server -> Internet Information Services (IIS). Click Yes to confirm removal of ASP.NET and RPC Over HTTP Proxy
  9. Rename C:Inetpub to C:Inetpub.old

Install:

  1. Control Panel -> Add Remove Program -> Add/Remove Windows Components
    1. Check Application Server -> Internet Information Services (IIS)
    2. Check Application Server -> Internet Information Services (IIS) -> FrontPage 2002 Server Extensions, NNTP Service, SMTP Service
    3. Check Application Server -> ASP.NET
    4. Check Networking Services -> RPC Over HTTP Proxy
  2. Control Panel -> Add Remove Program -> Windows Small Business Server 2003
    1. Set Server Tools to Reinstall.
    2. Set Intranet to Install. (If Intranet failed to install, please refer to Q832880)
    3. Expand Client Deployment, set Internet Explorer 6.0 and Microsoft Office Outlook 2003 to None (Installed).
    4. Set Exchange Server to Reinstall.
  3. Readd ConnectComputer to the Default Website
    1. Create a virtual directory called ConnectComputer under the Default Website.
    2. Set the path to C:InetpubConnectComputer. Verify Anonymous access is enabled.

Configuration:

  1. Run CEICW. This will reconfigure the IIS for OWA/Remote Web Workplace/Companyweb.
  2. Verify you can logon to OWA via https://localhost/exchange, RWW via https://localhost/remote, and Companyweb via http://companyweb