How to setup Branch Cache in Windows Server (2024)

Branch Cache enables faster access to files and data in branch offices by allowing them to cache content from a central server, reducing the need for constant data transmission over the network. In this post, we will see how to set up a Branch Cache in Windows Server.

Branch Cache will enable us to have a remote office where we can cache files from a central or a main office over a slow VPN tunnel, where the file caching makes it significantly smoother for the user to access the files. It has two operating modes.

  • Distributed Cache mode: Here each client stores a cached version of requested BranchCache-enabled files and serves as a distributed cache for other clients requesting the same files.
  • Hosted Cache mode: Designated servers at specific locations act as a cache for files requested by local clients. Instead of retrieving files from a remote source, the cache server provides the content on their behalf.

Do, in Hosted Cache, the files will be cached on the server, whereas, in Distributed mode, the caching will be done on the local computer or the client. The server way is the best, but it costs more.

How to set up Branch Cache in Windows Server

To set up a BranchCache in Windows Server, you need to follow the steps mentioned below.

  1. Add roles and features
  2. Create an Organizational Unit in the Domain Controller
  3. Create a GPO for the newly created organizational unit
  4. Check the properties of the folder and make sure that the users have the access
  5. Reboot the server and start BranchCache

Let us discuss them in detail.

1] Add roles and features

How to setup Branch Cache in Windows Server (1)

First, we are required to add some roles to use Branch Cache and install a few features. You can follow the steps mentioned below to do the same.

  1. Open theServer Manageron your computer.
  2. Go toAdd roles and features.
  3. Navigate totheServer rolestab, and expand File and Storage Services.
  4. Next, expandFile and iSCSI Services, and tick the box associated withBranchCache for Network Files.
  5. Click on Next, and go to Features.
  6. Now, you need to install the BranchCachefeature on your computer.

You need to have shared files and folders already for it to work.

2] Create an Organizational Unit in the Domain Controller

How to setup Branch Cache in Windows Server (2)

We need to switch to the Domain Controller and create a Group Policy that will only consider the server where we have enabled the BranchCache, which can then be deployed for all the users connected to the domain. Let us see how to do the same.

  1. In the Domain Controller, go to Server Manager.
  2. Next, click onToolsand then click onActive Directory Users and Computers.
  3. Right-click on your domain, and clickNew > Organizational Unit.
  4. Give the newly created object a name, you can call it“BranchCache Users”or“BranchCache Object”.
  5. Now, go to the Computers tab, select the server where you have enabled Branch Cache, drag it, and drop it into the newly created object.

In the next step, we will add a GPO to the newly created object.

3] Create a GPO for the newly created organizational unit

How to setup Branch Cache in Windows Server (3)

Here we are going to create a Group Policy that will affect the organizational unit and allow us to deploy the BranchCache. To do the same, follow the steps mentioned below.

  1. Go back toServer Manager.
  2. Click onTools > Group Policy Management.
  3. Right-click on the BranchCache Userorganizational unit and click on “Create a GPO in this domain, and Link it here”.
  4. You can give it a name, let’s say BranchGPO.
  5. Once the GPO object is created, right-click on it and select Edit.
  6. It will launch theGroup Policy Management Editor,go toComputer Configuration > Policies > Administrative Template > Network > Lanman Server.
  7. Double-click onHash Publication for BranchCache.
  8. Select Enabled.
  9. You have to selectAllow high publication for all shared folders.

By enabling this policy, we are allowing BranchCache to be used for all shared folders.

4] Check the properties of the folder and make sure that the users have the access

You need to go to the server where you have installed BranchCache (in the first step), go to the Shared location, right-click on the file or folder, and select Properties. Go to the Sharing tab and click onAdvanced Sharing > Permissions.

We need to control who has access to the GPO, so, remove Everyone, and click on Add type “domain user”,and click on Check Names. You have to make sure to tick all the boxes,Full Control, Change,andRead.

Go to the Security tab and click onAdvanced > Effective Accessto find out what privileges they will have.

5] Reboot the server and start BranchCache

How to setup Branch Cache in Windows Server (4)

  1. Open Server Manager.
  2. Go toTools > Computer Management.
  3. Navigate toShared Folders > Shares.
  4. Look for your shared folder, right-click on it, and click on Properties.
  5. Click onOffline Settings.
  6. Under“Only the files and programs that users specify are available offline”,tickEnable BranchCache,and click Ok.

Now, go to the Domain Controller, and click on Tools > Group Policy Management.Right-click on your policy and click onEdit.Now, go toPolicies > Administrative Templates > Network > BranchCache.

Double-click onSet BranchCache Distributed Cache modeorSet BranchCache Hosted Cache mode and set to Enabled.

How to setup Branch Cache in Windows Server (5)

Again, restart the server hosting the BranchCache feature. Once it is open, launch PowerShellas an administratorand run the following command.

get-bcstatus

You will see that the Branch Cache is installed and is running fine. Also, go through all the other settings and options mentioned there and you will be good to go.

That’s how you can set up a Branch Cache in Windows Server.

Read:How to allow or block BITS client from using Windows BranchCache.

How to check if BranchCache is enabled?

There are two commands that you can use in PowerShell (as an admin) to check the status of BranchCache – netsh branchcache show status all and Get- BCStatus.The former will give the BranchCache service status, whereas, the latter will give BranchCache status and configuration information.

Read:How to remove Roles and Features in Windows Server?

What are the requirements for BranchCache?

To use BranchCache, the client computers must have Windows 7 or later, while server computers should be running Windows Server 2008 or later. There should be sufficient available storage space for cache storage, and there needs to be stable and reliable network connectivity between the central server and branch offices.

Also Read:Windows Server 2022 Hardware Requirements.

How to setup Branch Cache in Windows Server (2024)
Top Articles
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 6145

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.