請確認 Client 電腦設定Verify Client Computer Settings

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

若要確認 client 電腦 BranchCache 針對正確的設定,您可以使用此程序。You can use this procedure to verify that the client computer is correctly configured for BranchCache.

注意

此程序包含步驟手動更新群組原則和重新 BranchCache 服務。This procedure includes steps for manually updating Group Policy and for restarting the BranchCache service. 您不需要執行這些動作,如果您重新開機,將會自動發生這種情況下。You do not need to perform these actions if you reboot the computer, as they will occur automatically in this circumstance.

您必須成員的系統管理員,或相當於執行此程序。You must be a member of Administrators, or equivalent to perform this procedure.

若要確認 BranchCache client 電腦設定To verify BranchCache client computer settings

  1. 若要重新整理 client 您想要確認其 BranchCache 設定電腦群組原則,系統管理員身分執行 Windows PowerShell,輸入下列命令,,然後按 ENTER。To refresh Group Policy on the client computer whose BranchCache configuration you want to verify, run Windows PowerShell as an Administrator, type the following command, and then press ENTER.

    gpupdate /force

  2. Client 電腦裝載快取模式中的設定,並設定為自動探索裝載快取伺服器服務連接點,執行下列命令停止並開機 BranchCache 服務。For client computers that are configured in hosted cache mode and are configured to automatically discover hosted cache servers by service connection point, run the following commands to stop and restart the BranchCache service.

    net stop peerdistsvc

    net start peerdistsvc

  3. 執行下列命令查看目前 BranchCache 操作模式。Inspect the current BranchCache operational mode by running the following command.

    Get-BCStatus

  4. Windows PowerShell 中, 檢視的輸出取得-BCStatus命令。In Windows PowerShell, review the output of the Get-BCStatus command.

    值為BranchCacheIsEnabled應該,則為 TrueThe value for BranchCacheIsEnabled should be True.

    ClientSettings的值為CurrentClientMode應該DistributedClientHostedCacheClient,根據您在設定使用本指南模式。In ClientSettings, the value for CurrentClientMode should be DistributedClient or HostedCacheClient, depending on the mode that you configured using this guide.

    ClientSettings,如果您設定裝載快取模式,並在設定期間,提供您裝載快取伺服器的名稱或是否有自動位於 client 裝載快取伺服器使用服務連接點, HostedCacheServerList應該會有相同的名稱或裝載快取伺服器的名稱為值。In ClientSettings, if you configured hosted cache mode and provided the names of your hosted cache servers during configuration, or if the client has automatically located hosted cache servers using service connection points, HostedCacheServerList should have a value that is the same as the name or names of your hosted cache servers. 例如,您裝載快取的伺服器稱為 HCS1 與您的網域是否 corp.contoso.com 的值為HostedCacheServerListHCS1.corp.contoso.comFor example, if your hosted cache server is named HCS1 and your domain is corp.contoso.com, the value for HostedCacheServerList is HCS1.corp.contoso.com.

  5. 如果任何設定上述 BranchCache 不具有正確的值,本指南使用的步驟驗證的群組原則 」 或 「 本機電腦原則設定,以及防火牆例外,在您的設定,並確認它們正確。If any of the BranchCache settings listed above do not have the correct values, use the steps in this guide to verify the Group Policy or Local Computer Policy settings, as well as the firewall exceptions, that you configured, and ensure that they are correct. 此外,重新開機,或是遵循的步驟來重新整理群組原則和重新開機 BranchCache 服務此程序。In addition, either restart the computer or follow the steps in this procedure to refresh Group Policy and restart the BranchCache service.