Reinstall the Client Access Role in Windows Small Business Server 2008

Aktualizováno: duben 2009

Platí pro: Windows Server 2008

ImportantDůležité
You should not perform the steps in this document over a remote connection that uses Remote Web Workplace or Terminal Services Gateway. The certificate that these components use is reset during the process, so you might not be able to reconnect to complete the steps. It is recommended that you complete these steps on-site or that you first install the Windows SBS 2008 root certificate.

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

To verify whether the Client Access 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 Client Access 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 Client Access 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. Install the Client Access Role by doing the following:

    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, select Client Access Role, and then insert Windows SBS 2008 Disc 2 (Component Technologies for Server Repair) into the server.

      notePoznámka
      If the Client Access Role is grayed out or already selected, the role is installed and you do not need to reinstall it.

    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.

  3. Run Windows PowerShell commands by doing the following:

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

      $LocalServerName = hostname
      $ActiveSyncMailboxName = "Windows SBS Mobile Mailbox Policy" + " " + $LocalServerName
      $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
      $DefaultExchangeCertificate = "CN=" + $LocalServerName
      Get-ExchangeCertificate | Where { $_.Subject -eq "$DefaultExchangeCertificate" } | ForEach { Remove-ExchangeCertificate -Thumbprint $_.Thumbprint }
      Remove-OWAVirtualDirectory -Identity "Owa (Default Web Site)" -Confirm:$false
      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
      Remove-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -Confirm:$false
      Remove-ActiveSyncVirtualDirectory -Identity "Microsoft-Server-ActiveSync (Default Web Site)" -Confirm:$false
      Remove-OabVirtualDirectory -Identity "OAB (Default Web Site)" -Force:$true -Confirm:$false
      Remove-UMVirtualDirectory -Identity "UnifiedMessaging (Default Web Site)" -Confirm:$false
      Remove-AutodiscoverVirtualDirectory -Identity "Autodiscover (Default Web Site)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Exadmin (SBS Web Applications)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Exchange (SBS Web Applications)" -Confirm:$false
      Remove-OWAVirtualDirectory -Identity "Public (SBS Web Applications)" -Confirm:$false
      New-OWAVirtualDirectory -WebsiteName "SBS Web Applications" -OwaVersion "Exchange2007" -ExternalAuthenticationMethods Fba
      Set-OWAVirtualDirectory -InternalUrl "https://sites/owa/" -ClientAuthCleanupLevel "Low" -LogonFormat "UserName" -DefaultDomain $strDomainDNS -Identity "Owa (SBS Web Applications)"
      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
      New-WebServicesVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/EWS/Exchange.asmx" -basicauthentication 1 -windowsauthentication 1
      New-ActiveSyncVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/Microsoft-Server-ActiveSync" -ExternalAuthenticationMethods Basic -InternalAuthenticationMethods Basic
      New-OabVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/OAB"
      Set-OabVirtualDirectory -PollInterval "30" -Identity "oab (sbs web applications)"
      New-UMVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/UnifiedMessaging/Service.asmx"
      New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/Autodiscover/Autodiscover.xml" -BasicAuthentication 1 -WindowsAuthentication 1
      Set-ClientAccessServer -Identity $LocalServerName -AutoDiscoverServiceInternalUri "https://sites/Autodiscover/Autodiscover.xml"
      Set-OfflineAddressBook $OAB.Name -VirtualDirectories $OABVDir -Versions Version2,Version3,Version4 -PublicFolderDistributionEnabled:$True
      iisreset /noforce
      cd $env:windir\system32\inetsrv
      .\appcmd.exe unlock config "-section:system.webserver/security/authentication/windowsauthentication"
      .\appcmd.exe set config "SBS Web Applications/ews" "-section:windowsAuthentication" "-useKernelMode:False" /commit:apphost
      .\appcmd.exe set config "SBS Web Applications/AutoDiscover" "-section:windowsAuthentication" "-useKernelMode:False" /commit:apphost
      .\appcmd.exe set config "SBS Web Applications/oab" "-section:windowsAuthentication" "-useKernelMode:False" /commit:apphost
      .\appcmd.exe set site "Default Web Site" /Bindings:http/*:80:
      .\appcmd.exe start site "Default Web Site"
      .\appcmd.exe start site "SBS Web Applications"
      
    2. Name the text file sbscasreinstall.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 the Exchange Management Shell, type .\sbsCASreinstall.ps1, and then press ENTER.

    6. Close the Exchange Management Shell.

  4. Update the settings in the Internet Information Services (IIS) Manager by doing the following:

    1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.

    2. Na stránce Řízení uživatelských účtů klikněte na možnost Pokračovat.

    3. Expand the name of your Windows SBS 2008 server, and then expand Sites.

    4. Click Default Web Site, and then click Start.

    5. Expand SBS Web Applications, and then click OAB.

    6. In OAB Home, double-click SSL Settings.

    7. Select Require SSL and Require 128-bit SSL, and then click Apply.

  5. Rerun the Internet Address Management Wizard to associate the new virtual directories with the correct external URL.

  6. If your server uses a trusted certificate, you must also run the Add Trusted Certificate Wizard.

Zobrazit: