Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

Reinstall the Mailbox Server Role in Windows Small Business Server 2008

Updated: February 4, 2010

Applies To: Windows SBS 2008

CautionCaution
You should only uninstall or reinstall the Mailbox Server Role as a last resort. Before you uninstall or reinstall the Mailbox Server Role, you should first troubleshoot the related software and services, and try to isolate the root cause of the issue. If you are unable to determine and correct the root cause, you may be able to fix the issue by restoring the server from a good backup.

To verify whether the Mailbox Server Role is already installed
  1. Click Start, click Control Panel, click Classic View, and then double-click Programs and Features.

  2. Click Microsoft Exchange Server 2007, and then click Change.

  3. On the User Account Control page, click Continue.

  4. In the Exchange Maintenance Mode dialog box, click Next.

  5. In Server Role Selection, if the Mailbox Role check box is grayed out or already selected, the role is installed and you do not need to reinstall it. If it is not selected, click Cancel, and then complete the steps in the following procedure.

To reinstall the Mailbox Server Role in Windows Small Business Server 2008
  1. Create a registry value to use with Windows SBS 2008 Disc 2 (Component Technologies for Server Repair) and Microsoft Exchange Server 2007 by doing the following:

    noteNote
    You can skip this step if Microsoft Exchange Server 2007 with Service Pack 2 is installed on the server, and if you are using the Exchange Server 2007 SP2 installation folder as the source for the Exchange Server 2007 installation files.

    1. Open Registry Editor.

      CautionCaution
      Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

    2. On the User Account Control page, click Continue.

    3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\461C2B4266EDEF444B864AD6D9E5B613\SourceList\Media.

    4. Create a new string value named MediaPackage: Right-click Media, click New, click String Value, in Name, type MediaPackage, and then press ENTER.

    5. Double-click MediaPackage, in Edit String, in Value data, type \CMPNENTS\Exchange12\, and then click OK.

    6. Close Registry Editor.

  2. Rename the C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group folder to First Storage Group OLD.

  3. Rename the C:\Program Files\Microsoft\Exchange Server\Mailbox\Second Storage Group folder to Second Storage Group OLD.

  4. Install the Mailbox Server Role by doing the following:

    1. Click Start, click Control Panel, click Classic View, and then click Programs and Features.

    2. Click Microsoft Exchange Server 2007, and then click Change.

    3. On the User Account Control page, click Continue.

    4. In the Exchange Maintenance Mode dialog box, click Next.

    5. In Server Role Selection, select Mailbox Role, and then insert Windows SBS 2008 Disc 2 (Component Technologies for Server Repair) into the server.

    6. In Specify the path for the Exchange Server installation files, click Browse.

    7. Click <DVD Drive>:\CMPNENTS\Exchange12, where <DVD Drive> is the name of your media drive, click OK, and then click Next.

      noteNote
      If Service Pack 2 for Microsoft Exchange Server 2007 is installed on Windows SBS 2008, you need to select the Exchange Server 2007 SP2 installation folder as the source for the Exchange Server 2007 installation files.

    8. In the Readiness Checks dialog box, click Install.

      noteNote
      The installation might take several minutes.

    9. When the installation finishes, click Finish.

  5. Run Windows PowerShell commands by doing the following:

    1. Copy and paste the following cmdlets into a text file:

      $LocalServerName = hostname
      $OABVDir = $LocalServerName + "\OAB (SBS Web Applications)"
      $OAB = Get-OfflineAddressBook | Select-Object -Property Name
      $strDomainDNS = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().Name
      $DomainAdmins = $strDomainDNS + "\Domain Admins"
      $OrgName = Get-OrganizationConfig | Select-Object -Property DistinguishedName
      REG ADD HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem /v "Disable MAPI Clients" /t REG_SZ /d 0.0.0-5.3164.0
      Get-MailboxDatabase | Set-MailboxDatabase -OfflineAddressBook $OAB.Name -DeletedItemRetention "30.00:00:00"
      Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled 1
      Remove-OWAVirtualDirectory -Identity "Exadmin (Default Web Site)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Exchange (Default Web Site)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Exchweb (Default Web Site)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Public (Default Web Site)" -Confirm:$false
      New-OWAVirtualDirectory -WebsiteName "SBS Web Applications" -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Exadmin" -ExternalAuthenticationMethods Fba
      New-OWAVirtualDirectory -WebsiteName "SBS Web Applications" -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Mailboxes" -ExternalAuthenticationMethods Fba
      New-OWAVirtualDirectory -WebsiteName "SBS Web Applications" -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "Exchweb" -ExternalAuthenticationMethods Fba
      New-OWAVirtualDirectory -WebsiteName "SBS Web Applications" -OwaVersion "Exchange2003or2000" -VirtualDirectoryType "PublicFolders" -ExternalAuthenticationMethods Fba
      Set-OfflineAddressBook $OAB.Name -VirtualDirectories $OABVDir -Versions Version2,Version3,Version4 -PublicFolderDistributionEnabled:$True
      
    2. Name the text file sbsmailboxrolereinstall.ps1, and then save it in C:\windows\system32.

    3. Open Exchange Powershell: Click Start, click All Programs, click Microsoft Exchange Server 2007, right-click Exchange Management Shell, and then click Run as administrator.

    4. On the User Account Control page, click Continue.

    5. In Exchange Management Shell, type .\sbsmailboxrolereinstall.ps1, and then press ENTER.

    6. Type Y to confirm the action, and then press ENTER.

    7. Close Exchange Management Shell.

  6. To send e-mail messages to the Internet, run the Fix My Network Wizard by doing the following:

    1. Open the Windows SBS Console.

    2. On the navigation bar, click Network, and then click Connectivity.

    3. In the task pane, click Fix my network.

    4. Follow the instructions in the wizard. You can click each potential problem that the wizard lists to get more information about the problem. To recreate the default Send and Receive connectors to re-establish mail flow, select Exchange SMTP connectors are invalid.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.