You are on page 1of 27

Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

Just a random ʺMicrosoft Server / Client Techʺ info..


ʺFeeding Your Training and Technology Obsessionsʺ

Step by Step : Deploy & Configure BranchCache in


Windows Server 2012 R2

December 30, 2014


Branch offices have unique management challenges.

A branch office typically has slow connectivity to the enterprise network and limited infrastructure for
securing servers.

In addition, you need to back up data that you maintain in your remote branch offices, which is why
organizations prefer to centralize data where possible.

Therefore, the challenge is to provide efficient access to network resources for users in branch offices.

BranchCache helps you overcome these problems by caching files so they do not have to be transferred
repeatedly over the network.

BranchCache improves the responsiveness of common network applications that access intranet servers
across slow WAN links.

Because BranchCache does not require additional infrastructure, you can improve the performance of
remote networks by deploying Windows 7 or newer client computers, and by deploying Windows Server
2008 R2 or newer servers, and then enabling the BranchCache feature.

BranchCache maintains file and folder permissions to ensure that users only have access to files and
folders for which they have permission.

For more information, please log in to : h p://technet.microsoft.com/en-us/library/hh831696.aspx


(h p://technet.microsoft.com/en-us/library/hh831696.aspx)

For this demo, i will be using 2 Server & 1 client PC, which is 1 Domain Server, 1 Member Server and 1
Windows 8 PC…

1st – Configure Domain Server to use Windows BranchCache

1 – On the DC01 server, open Server Manager, click Add roles and features and proceed installation until
you reach Select server roles interface, and click BranchCache for Network Files, then proceed with
Next…

1 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/128.png)

2 – On the Select features interface, click Next…

(h ps://mizitechinfo.files.wordpress.com/2014/12/220.png)

3 – On the Confirm installation selections interface, click Install…

2 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/320.png)

4 – Once the installation complete, click Close…

(h ps://mizitechinfo.files.wordpress.com/2014/12/417.png)

5 – Next, on the Domain Server open Gpedit.msc…

** In the Local Group Policy Editor console, under Computer Configuration, expand Administrative
Templates, expand Network, and then click Lanman Server.

** On the Lanman Server result pane, double click Hash Publication for BranchCache…

3 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/517.png)

6 – In the Hash Publication for BranchCache box, click Enabled, in the Hash publication actions list, select
the Allow hash publication only for shared folders on which BranchCache is enabled, and then click OK…

(h ps://mizitechinfo.files.wordpress.com/2014/12/69.png)

2nd – Simulate a slow link to the branch office

1 – Still in the Local Group Policy Editor console in Domain Server, in the navigation pane, under
Computer Configuration, expand Windows Se@ings, right-click Policy-based QoS, and then click Create
new policy…

4 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/129.png)

2 – In the Policy-based QoS Wizard, on the Create a QoS policy interface, in the Policy name text box,
type Limit to 100 Kbps, and then select the Specify Outbound Thro@le Rate check box. In the
Specify Outbound Thro@le Rate text box, type 100, and then click Next…

(h ps://mizitechinfo.files.wordpress.com/2014/12/228.png)

3 – On the This QoS policy applies to interface, click Next…

5 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/323.png)

4 – On the Specify the source and destination IP addresses interface, click Next…

(h ps://mizitechinfo.files.wordpress.com/2014/12/418.png)

5 – On the Specify the protocol and port numbers interface, click Finish and close Local Group Policy
Editor console…

6 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/518.png)

3rd – Enable a File Share for BranchCache

1 – On the Domain Server DC01, create 1 folder called BC My_Share, and then share this folder…

(h ps://mizitechinfo.files.wordpress.com/2014/12/130.png)

2 – On the BC My_Share properties, click Advanced Sharing…

7 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/229.png)

3 – Click Share this folder box, and click Caching…

(h ps://mizitechinfo.files.wordpress.com/2014/12/324.png)

4 – In the Offline Se@ings box, click Enable BranchCache box, and then click OK…

8 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/419.png)

5 – Next, just simply copy any file and paste into the BC My_Share (for this demo i copy WordPad.exe)

(h ps://mizitechinfo.files.wordpress.com/2014/12/519.png)

4th – Configure client firewall rules for BranchCache

1 – In the Domain Server DC01, open Group Policy Management, then right-click Default Domain Policy,
and then click Edit…

9 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/138.png)

2 – In the Group Policy Management Editor, under Computer Configuration, expand Policies, expand
Windows Se@ings, expand Security Se@ings, and then expand Windows Firewall with Advanced
Security…

** expand Windows Firewall with Advanced Security, right-click Inbound Rules, and then click New
Rule…

(h ps://mizitechinfo.files.wordpress.com/2014/12/230.png)

3 – In the New Inbound Rule Wizard, on the Rule Type page, click Predefined, click BranchCache
– Content Retrieval (Uses HTTP), and then click Next…

10 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/325.png)

4 – On the Predefined Rules interface, click Next…

(h ps://mizitechinfo.files.wordpress.com/2014/12/420.png)

5 – On the Action page, click Finish to create the firewall inbound rule…

11 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/520.png)

6 – Repeat the same step, and this time click Predefined, click BranchCache – Peer Discovery (Uses WSD),
and
then click Next and proceed till Finish…

(h ps://mizitechinfo.files.wordpress.com/2014/12/610.png)

7 – Next, run gpupdate /boot /force command to activate the policy…

12 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/79.png)

5th – Install BranchCache for Network Files role and the BranchCache feature on Member Server

1 – Switch to member Server SVR2, open Server Manager, click Add roles and features and proceed
installation to BranchCache for Network Files and proceed to Select Features….

(h ps://mizitechinfo.files.wordpress.com/2014/12/139.png)

2 – On the Select features interface, click BranchCache, and then click Next…

13 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/235.png)

3 – On the Confirm installation selections interface, click Install, and then click Close….

(h ps://mizitechinfo.files.wordpress.com/2014/12/326.png)

4 – Next, we need to start the BranchCache host server, in the SVR2 server open Windows PowerShell
and type :

Enable-BCHostedServer -RegisterSCP

Get-BCStatus

** verify that BranchCache is enabled and running…

14 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/521.png)

5 – Scroll down to the DataCache section, notice the current active cache size is zero…

(h ps://mizitechinfo.files.wordpress.com/2014/12/612.png)

6 – Lastly run the gpupdate /boot /force…

15 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/710.png)

6th – Configure client PC to use BranchCache in hosted cache mode

1 – On Domain Server DC01 open Group Policy Management, then right-click Adatum.com, and then
click New Organizational Unit…

(h ps://mizitechinfo.files.wordpress.com/2014/12/140.png)

2 – In the New Organizational Unit box, type Adatum Branch and then click OK…

16 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/236.png)

3 – Right-click the Adatum Branch OU and click Create a GPO in this domain, and link it here…

(h ps://mizitechinfo.files.wordpress.com/2014/12/327.png)

4 – In the New GPO box, type BranchCache, and then click OK…

17 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/422.png)

5 – Next, right-click the BranchCache GPO and click Edit…

(h ps://mizitechinfo.files.wordpress.com/2014/12/522.png)

6 – In the Group Policy Management Editor, under Computer Configuration, expand Policies, expand
Administrative Templates, expand Network, and then click BranchCache…

** in the Se@ing list, double click BranchCache…

18 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/613.png)

7 – In the Turn on BranchCache box, click Enabled, and then click OK…

(h ps://mizitechinfo.files.wordpress.com/2014/12/711.png)

8 – In the BranchCache results pane, double click Enable Automatic Hosted Cache Discovery by Service
Connection Point….

19 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/89.png)

9 – In the Enable Automatic Hosted Cache Discovery by Service Connection Point box, click Enabled, and
then click OK…

(h ps://mizitechinfo.files.wordpress.com/2014/12/98.png)

10 – In the BranchCache results pane, double click Configure BranchCache for network files, and then
click Edit…

20 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/108.png)

11 – In the Configure BranchCache for network files box, click Enabled, in the Type the maximum round
trip network latency (milliseconds) after which caching begins text box, type 0, and then click OK.

“This se@ing is required to simulate access from a branch office and is not typically required…”

(h ps://mizitechinfo.files.wordpress.com/2014/12/1113.png)

12 – Next, open Active Directory Users and Computers, and move any clients PC that you have in
Computetr OU to Adatum Branch OU…

21 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/1210.png)

(h ps://mizitechinfo.files.wordpress.com/2014/12/1310.png)

13 – Next, switch to Client PC, open CMD and type : netsh branchcache show status all

** Verify that the BranchCache Current Status is Running. If the status is Stopped, restart the
client machines.

22 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/148.png)

7th – Monitoring BranchCache

1 – Switch to SVR2 Server and open Performance Monitor…

** under Monitoring Tools, click Performance Monitor, then click the Add icon…

** In the Add Counters box, under Select counters from computer, click BranchCache, click Add…

(h ps://mizitechinfo.files.wordpress.com/2014/12/150.png)

2 – and then click OK…

23 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/237.png)

3 – On the Change Graph type bu@on, select Report…

(h ps://mizitechinfo.files.wordpress.com/2014/12/328.png)

4 – Switch to Client PC, and repeat the step previously for Performance Monitor & add BranchCache….

24 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/423.png)

5 – Now lets the BranchCache, on the client PC, access to \\lon-dc1\BC My_Share folder….

(h ps://mizitechinfo.files.wordpress.com/2014/12/523.png)

6 – Copy the whole file in the BC My_Share folder and then paste to your client PC desktop…

25 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

(h ps://mizitechinfo.files.wordpress.com/2014/12/614.png)

7 – Read the performance statistics on client PC.

** This file was retrieved from LON-DC1 (Retrieval: Bytes from Server).

** After the file was cached locally, it was passed up to the hosted cache. (Retrieval: Bytes Served)

(h ps://mizitechinfo.files.wordpress.com/2014/12/712.png)

that’s all for now.. i hope you all enjoy the demo on the BranchCache…

26 of 27 6/5/2018 10:41 PM
Step by Step : Deploy & Configure BranchCache in Windows Server 201... https://mizitechinfo.wordpress.com/2014/12/30/step-by-step-deploy-conf...

Report this ad

Report this ad
From → Windows Server 2012 R2

Leave a Comment

Create a free website or blog at WordPress.com.

27 of 27 6/5/2018 10:41 PM

You might also like