Reinstall the Mailbox Server Role in Windows Small Business Server 2008

Aktualizováno: duben 2009

Platí pro: Windows SBS 2008

If the Mailbox Server Role is already installed, you do not need to uninstall or reinstall it.

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. Na stránce Řízení uživatelských účtů klikněte na možnost Pokračovat.

  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:

    1. Open Registry Editor.

      CautionUpozornění
      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. Na stránce Řízení uživatelských účtů klikněte na možnost Pokračovat.

    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. Na stránce Řízení uživatelských účtů klikněte na možnost Pokračovat.

    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.

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

      notePoznámka
      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. Na stránce Řízení uživatelských účtů klikněte na možnost Pokračovat.

    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. Spusťte konzolu systému Windows SBS.

    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.

Zobrazit: