Scroll To Top

Configure BranChcache Server 2016 step by step

Posted in Article, Networking, Windows Server1 year ago • Written by Nyaz2 Comments

BranchCache is a WAN optimization technology that is built into Server 2016. It enables remote offices to access centralized file-shares, over the wide area network at faster speeds and using less bandwidth. This type of solution to remote office WAN optimization are collectivity known as “wide area files services” or WAFS solutions. They are traditionally expensive. so, it is a great to have a solution included in the box with Windows Server. To install and Configure BranchCache Server 2016.

Configure BranchCache Server 2016

Step 1: In Server Manager, click Manage, and then click Add Roles and Features. The Add Roles and Features wizard opens. Click Next.

Step 2: In Select Installation Type, ensure that Role-based or feature-based installation is selected, and then click Next.

Step 3: In Select destination server, ensure that the correct server is selected, and then click Next.

Configure BranchCache Server 2016

Configure BranchCache Server 2016

Step 4: In Select server roles, click File and Storage Services and click File and iSCSI Services then select BranchCache for Network File, click Next.

BranchCache for Network file

BranchCache for Network file

Step 5: In Select features, click BranchCache, and then click Next.

BranchCache -Nyazit

BranchCache -Nyazit

Step 6: In Confirm installation selections, click Install. In Installation progress, the BranchCache feature installation proceeds. When installation is complete, click Close.

Configure BranchCache Server 2016

Configure BranchCache Server 2016

When the installation process complete successfully, click Close.

After you install the BranchCache feature, the BranchCache service – also called the PeerDistSvc – is enabled, and the start type is Automatic.

How to Enable BranchCache Hosted mode

must be enabled on your clients to instruct them which type to use (hosted or distributed cache). You must also create the required firewall exceptions, and ensure that the files you wish to be cacheable have a hash generated on them. The easiest way to configure BranchCache is via Group Policy. to configure branchCache Server 2016, you should do theses process.

Step 1: in Server Manager, click Tools, and then click Group Policy Management. The Group Policy Management console opens.

Step 2: Right‐click Group Policy Objects, and then click New. The New GPO dialog box opens. In Name, type a name for the new Group Policy Object ﴾GPO﴿. For example, Lanman Server. Click OK.

Create Group Policy Object

Create Group Policy Object

Setup 3: In the Group Policy Management Console, ensure that the group policy object is selected, in the detail pane right-click the GPO you created. Click Edit.

Edit Group Policy Object

Edit Group Policy Object

Step 5: in the Group Policy Management Console, expand the following path: Computer Configuration -> Windows Setting -> Administrative Template -> Network -> Lanman Server.

Lanman Server

Lanman Server

Step 6: Click Lanman Server, and then in the details pane double-click Hash Publication for BranchCache. The Policy Setting dialog box open.

Step 7: In the Hash Publication for BranchCache dialog box, click Enable. In the Hash Publication actions, there is three action, I have selected “Allow Hash Publication for all Shared Folder” and then click Ok.

Hash Publication for BranchCache

Hash Publication for BranchCache

Step 8: After Enabling Hash Publication for BranchCache on the content Server, you must update the group policy, to do that, open CMD type Gpupdat / force and hit enter.

Gpupdate /force

Gpupdate /force

Step 9: After the group policy is set you have to share a folder and enable BranchCache on that share. Simple way to do so in the GUI.

Enable BranchCache

Enable BranchCache

Now that the content server is ready I’m gonna fill it up with some files and in part 2 we will set up the Hosted cache server and the clients.

In this article, in our series on how to configure the BranchCache Hosted Mode solution, we went over the installation process for the BranchCache feature on the file server, creating the BranchCache File Servers OU, creating a GPO to enable hash publication for the members of that OU, and then configured the GPO so that hashes are published for shared files on the BranchCache enabled file server. Finally, we enabled BranchCache on a file share that we created on the BranchCache enabled file server.

Group Policy Object and configure BranchCache modes

You can use these procedures to create a Group Policy Object for all of the computers in your organization, to configure domain member client computers with distributed cache mode or hosted cache mode, and to configure Windows Firewall with Advanced Security to allow BranchCache traffic.

Step 1: On a computer upon which the Active Directory Domain Services server role is installed, in Server Manager, click Tools, and then click Group Policy Management. The Group Policy Management console opens.

Step 3: In the Group Policy Management console, ensure that Group Policy Objects is selected, and in the details pane right‐click the GPO that you just created. For example, if you named your GPO BranchCache, right‐click BranchCache. Click Edit. The Group Policy Management Editor console opens.

BranchCache GPO

BranchCache GPO

Step 4: In the Group Policy Management Editor Console, expand the following path: Computer Configuration, Policies, Administrative Templates: Policy definitions ﴾ADMX files﴿ retrieved from the local computer, Network, BranchCache.

Group Policy Management Editor

Group Policy Management Editor

Step 5: Click BranchCache, and then in the details pane, double-click Turn on BranchCache. The policy setting dialog box opens.

Enable Turn on BranchCache

Enable Turn on BranchCache

Step 6: in the Turn on BranchCache dialog box, click Enable, and then click Ok.

Step 7: To enable BranchCache distributed Cache mode, in the details pane, double-click Set BranchCache Distributed Cache mode. The Policy Setting dialog box opens.

Step 8: In the Set BranchCache Distributed cache mode, click enable, and then click Ok.

Step 9: If you have one or more branch offices where you are deploying BranchCache in hosted cache mode, and you have deployed hosted cache servers in those offices, double‐click Enable Automatic Hosted Cache Discovery by Service Connection Point. The policy setting dialog box opens.

Enable Automatic Hosted Cache Discovery by Service Connection Point

Enable Automatic Hosted Cache Discovery by Service Connection Point

Step 10: In the Enable Automatic Hosted Cache discovery by Service Connection Point dialog bog, click enable, and then click Ok.

NOTE: When you enable both the Set BranchCache Distributed Cache mode, and the Enable Automatic Hosted Cache Discovery by Service Connection Point policy settings, client computers operate in BranchCache distributed cache mode, unless they find a hosted cache server in the branch office, at which point they operate in hosted cache mode.

Step 11: To enable Configure BranchCache for Network File, in the details pane, double-click Configure BranchCache for Network file. The policy setting dialog box opens.

Step 12: In the Configure BranchCache for Network File dialog box, click Enable, and then click Ok.

Use the procedures below to configure firewall settings on client computers by using Group Policy.

To configure Windows Firewall with Advanced Security Inbound Traffic Rules

Step 13: In the Group Policy Management Editor console, expand the following path: Computer Configuration, Policies, Windows Settings, Security Settings, Windows Firewall with Advanced Security, Windows Firewall with Advanced Security – LDAP…, Inbound Rules.

New Firewall Rule

New Firewall Rule

Step 14: Right‐click Inbound Rules, and then click New Rule. The New Inbound Rule Wizard opens.

BranchCache – Content Retrieval ﴾Uses HTTP﴿.

BranchCache – Content Retrieval ﴾Uses HTTP﴿.

Step 15: In Rule Type, click Predefined, expand the list of choices, and then click BranchCache – Content Retrieval ﴾Uses HTTP﴿. Click Next to open Predefined Rules, click Next.

Predefined Rules

Predefined Rules

Step 16: In Action, ensure that Allow the connection is selected, and then click Finish.

Allow the Connetion

Allow the Connetion

You must select Allow the connection for the BranchCache client to be able to receive traffic on this port.

Step 17: To create the WS‐Discovery firewall exception, again right‐click Inbound Rule, and then click New Rule. The New Outbound Rule Wizard opens.

Configure BranchCache Server 2016

Configure BranchCache Server 2016

Step 18: In Rule Type, click Predefined, expand the list of choices, and then click BranchCache – Peer Discovery ﴾Uses WSD﴿. Click Next.

BranchCache – Peer Discovery ﴾Uses WSD﴿

BranchCache – Peer Discovery ﴾Uses WSD﴿

Step 19: In Predefined Rules, click Next.

Configure BranchCache Server 2016

Configure BranchCache Server 2016

Step 20: In Action, ensure that Allow the connection is selected, and then click Finish.

Configure BranchCache Server 2016

Configure BranchCache Server 2016

You must select Allow the connection for the BranchCache client to be able to send traffic on this port.

To configure Windows Firewall with Advanced Security Outbound Traffic Rules

Step 1:  In the Group Policy Management Editor console, right‐click Outbound Rules, and then click New Rule. The New Outbound Rule Wizard opens.

Step 2: In Rule Type, click Predefined, expand the list of choices, and then click BranchCache – Content Retrieval ﴾Uses HTTP﴿. Click Next.

Step 3: In Predefined Rules, click Next.

Step 4: In Action, ensure that Allow the connection is selected, and then click Finish.

You must select Allow the connection for the BranchCache client to be able to send traffic on this port.

Step 5: To create the WS‐Discovery firewall exception, again right‐click Outbound Rules, and then click New Rule. The New Outbound Rule Wizard opens.

Step 6: In Rule Type, click Predefined, expand the list of choices, and then click BranchCache – Peer Discovery ﴾Uses WSD﴿. Click Next.

Step 7: In Predefined Rules, click Next.

Step 8: In Action, ensure that Allow the connection is selected, and then click Finish.

that’s all for now… I hope you all enjoy the demo on the BranchCache…If have any question about this article, from any step you can ask me in the comment bellow.

 

TAGS: ,

2 Comments so far. Feel free to join this conversation.

  1. John Porter April 28, 2017 at 8:29 pm - Reply

    Excellent documentation and detail with the step by step approach!

    • Nyaz May 7, 2017 at 7:48 pm - Reply

      Thanks dear John Porter

Leave A Response