启用非域成员文件服务器的哈希发布Enable Hash Publication for Non-Domain Member File Servers

适用于:Windows Server(半年频道)、Windows Server 2016Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

使用安装了文件服务服务器角色的 "网络文件 BranchCache " 角色服务的文件服务器上的 "本地计算机组策略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.

Administrators中的成员身份或同等身份是执行此过程所需的最低要求。Membership in Administrators, or equivalent is the minimum required to perform this procedure.

备注

如果有一个或多个域成员文件服务器,则可以将其添加到 Active Directory 域服务中 (OU) ,然后使用组策略一次为所有文件服务器配置哈希发布,而不是单独配置每个文件服务器。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. 有关详细信息,请参阅为域成员文件服务器启用哈希发布For more information, see Enable Hash Publication for Domain Member File Servers.

为一个文件服务器启用哈希发布To enable hash publication for one file server

  1. 打开 Windows PowerShell,键入 mmc,然后按 Enter。Open Windows PowerShell, type mmc, and then press ENTER. Microsoft 管理控制台 (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 的哈希发布"。In the details pane, double-click Hash Publication for BranchCache. " BranchCache 的哈希发布" 对话框将打开。The Hash Publication for BranchCache dialog box opens.

  6. 在 " BranchCache 的哈希发布" 对话框中,单击 "启用"。In the Hash Publication for BranchCache dialog box, click Enabled.

  7. 在 "选项" 中,单击 "允许对所有共享文件夹进行哈希发布",然后单击以下选项之一:In Options, click Allow hash publication for all shared folders, and then click one of the following:

    1. 若要为此计算机上的所有共享文件夹启用哈希发布,请单击 "允许对所有共享文件夹进行哈希发布"。To enable hash publication for all shared folders on this computer, click Allow hash publication for all shared folders.

    2. 若要仅为启用了 BranchCache 的共享文件夹启用哈希发布,请针对启用了 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. 若要禁止对计算机上的所有共享文件夹进行哈希发布,即使已在文件共享上启用 BranchCache,请单击 "禁止对所有共享文件夹进行哈希发布"。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.