設定 BranchCache Hash 發行群組原則物件Configure the BranchCache Hash Publication Group Policy Object

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

您可以使用此程序,讓您新增到您的組織單位的所有檔案伺服器都已經套用到他們的相同 hash 發行原則設定設定 BranchCache hash 發行群組原則物件 (GPO)。You can use this procedure to configure the BranchCache hash publication Group Policy Object (GPO) so that all file servers that you added to your OU have the same hash publication policy setting applied to them.

資格在網域系統管理員,或相當於的最低需求才能執行此程序。Membership in Domain Admins, or equivalent is the minimum required to perform this procedure.

注意

之前,請先執行此程序,BranchCache 檔案伺服器組織單位,您必須先建立組織單位,將檔案伺服器,並建立 GPO BranchCache hash 發行。Before performing this procedure, you must create the BranchCache file servers organizational unit, move file servers into the OU, and create the BranchCache hash publication GPO. 如需詳細資訊,請查看讓 Hash 發行網域成員檔案伺服器的For more information, see Enable Hash Publication for Domain Member File Servers.

若要設定 BranchCache hash 發行群組原則物件To configure the BranchCache hash publication Group Policy Object

  1. Windows PowerShell 系統管理員身分執行,輸入mmc,然後按 ENTER 鍵。Run Windows PowerShell as an Administrator, type mmc, and then press ENTER. Microsoft Management Console (MMC) 開啟。The Microsoft Management Console (MMC) opens.

  2. 在 MMC,在檔案功能表上,按新增/移除嵌入式管理單元In the MMC, on the File menu, click Add/Remove Snap-in. 中新增或移除嵌入式管理單元對話方塊。The Add or Remove Snap-ins dialog box opens.

  3. 中新增或移除嵌入式管理單元,請在可用嵌入式管理單元,按兩下 [群組原則管理,然後按一下 [ [確定]In Add or Remove Snap-ins, in Available snap-ins, double-click Group Policy Management, and then click OK.

  4. 在群組原則管理 MMC 中,展開 BranchCache hash 發行 GPO 您先前建立的路徑。In the Group Policy Management MMC, expand the path to the BranchCache hash publication GPO that you previously created. 例如樹系稱為 example.com,如果您的網域名稱為 example1.com,,為您 GPO BranchCache Hash 發行,展開下列路徑:群組原則管理樹系:example.com網域example1.com群組原則物件BranchCache Hash 發行For example, if your forest is named example.com, your domain is named example1.com, and your GPO is named BranchCache Hash Publication, expand the following path: Group Policy Management, Forest: example.com, Domains, example1.com, Group Policy Objects, BranchCache Hash Publication.

  5. 以滑鼠右鍵按一下BranchCache Hash 發行GPO 和編輯Right-click the BranchCache Hash Publication GPO and click Edit. 群組原則編輯器] 管理主控台開啟。The Group Policy Management Editor console opens.

  6. 在群組原則編輯器] 管理主控台中,展開下列路徑:電腦設定原則系統管理範本]網路Lanman 伺服器In the Group Policy Management Editor console, expand the following path: Computer Configuration, Policies, Administrative Templates, Network, Lanman Server.

  7. 在群組原則編輯器] 管理主控台中,按一下 [ Lanman 伺服器In the Group Policy Management Editor console, click Lanman Server. 在詳細資料窗格中,按兩下 [適用於 BranchCache Hash 發行In the details pane, double-click Hash Publication for BranchCache. 適用於 BranchCache Hash 發行對話方塊。The Hash Publication for BranchCache dialog box opens.

  8. Hash 發行 BranchCache 的對話方塊中,按啟用In the Hash Publication for BranchCache dialog box, click Enabled.

  9. 選項,按一下 [允許 hash 發行的所有共用資料夾,然後按一下 [下列其中一個動作:In Options, click Allow hash publication for all shared folders, and then click one of the following:

    1. 若要的所有檔案伺服器您新增到組織單位 hash 發行的所有共用資料夾,按一下 [允許 hash 發行的所有共用資料夾To enable hash publication for all shared folders for all file servers that you added to the OU, click Allow hash publication for all shared folders.

    2. 若要讓 hash 發行只 BranchCache 支援的共用資料夾,按一下 [允許 hash 發行 BranchCache 支援的共用資料夾的僅適用於To enable hash publication only for shared folders for which BranchCache is enabled, click Allow hash publication only for shared folders on which BranchCache is enabled.

    3. 若要禁止 hash 發行,針對所有共用即使 BranchCache 支援的檔案共用的電腦上的資料夾,按一下 [不允許 hash 發行,所有的共用資料夾To disallow hash publication for all shared folders on the computer even if BranchCache is enabled on the file shares, click Disallow hash publication on all shared folders.

  10. 按一下[確定]Click OK.

注意

在大部分案例中,您必須儲存 MMC 主控台並重新整理] 檢視顯示您所做的設定變更。In most cases, you must save the MMC console and refresh the view to display the configuration changes you have made.