讓非網域成員檔案伺服器 Hash 發行Enable Hash Publication for Non-Domain Member File Servers

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

您可以使用此程序,設定 hash 發行 BranchCache 使用本機群組原則的電腦執行 Windows Server 2016 的檔案伺服器上的BranchCache 網路檔案的的安裝檔案服務伺服器角色角色服務。You can use this procedure to configure hash publication for BranchCache using local computer Group Policy on a file server that is running Windows Server 2016 with the BranchCache for Network Files role service of the File Services server role installed.

此程序適用於非網域成員檔案伺服器上。This procedure is intended for use on a non-domain member file server. 如果您的網域成員檔案伺服器上執行此程序,您也可以設定使用群組原則網域 BranchCache 網域群組原則設定覆寫本機群組原則設定。If you perform this procedure on a domain member file server and you also configure BranchCache using domain Group Policy, domain Group Policy settings override local Group Policy settings.

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

注意

如果您有一或多個網域成員檔案伺服器,您可以將它們新增到 Active Directory Domain Services 組織單位(組織單位),然後使用群組原則設定 hash 發行的所有檔案伺服器一次,而不是排列設定的每個檔案伺服器。If you have one or more domain member file servers, you can add them to an organizational unit (OU) in Active Directory Domain Services and then use Group Policy to configure hash publication for all of the file servers at one time, rather than individually configuring each file server. 如需詳細資訊,請查看讓 Hash 發行網域成員檔案伺服器的For more information, see Enable Hash Publication for Domain Member File Servers.

若要讓 hash 發行一個檔案伺服器To enable hash publication for one file server

  1. 開放的 Windows PowerShell,輸入mmc,然後按 ENTER 鍵。Open Windows PowerShell, 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 Object Editor. 群組原則精靈開啟選取的本機電腦物件。The Group Policy Wizard opens with the Local Computer object selected. 按一下完成,然後按[確定]Click Finish, and then click OK.

  4. 在本機群組原則編輯器 MMC 中,展開下列路徑:本機電腦原則電腦設定系統管理範本網路Lanman 伺服器In the Local Group Policy Editor MMC, expand the following path: Local Computer Policy, Computer Configuration, Administrative Templates, Network, Lanman Server. 按一下Lanman 伺服器Click Lanman Server.

  5. 在詳細資料窗格中,按兩下 [適用於 BranchCache Hash 發行In the details pane, double-click Hash Publication for BranchCache. 適用於 BranchCache Hash 發行對話方塊。The Hash Publication for BranchCache dialog box opens.

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

  7. 選項,按一下 [允許 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 on this computer, 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.

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