Enable BranchCache distributed cache mode using network shell commands

Published: October 7, 2009

Updated: October 7, 2009

Applies To: Windows 7, Windows Server 2008 R2

You can use this procedure to manually configure a BranchCache client computer for distributed cache mode using network shell (netsh) commands.

If you have configured BranchCache client computers using Group Policy, the Group Policy settings override any manual configuration of client computers to which the policies are applied.

Membership in Administrators, or equivalent is the minimum required to perform this procedure.

  1. On the BranchCache client computer that you want to configure, click Start, click Search programs and files, and then type command. In search results, under Programs, right-click Command Prompt, and then click Run as Administrator. The command prompt opens with the elevated privileges that are required to run netsh commands.

  2. Run the following command: netsh branchcache set service mode=DISTRIBUTED

    Running the netsh branchcache set service command both configures the client computer for distributed cache mode and automatically configures the client computer firewall with the following inbound exceptions for distributed cache mode: TCP port 80 and UDP port 3702.

  3. To enable client computers to download and cache content from BranchCache file server-based content servers, run the following command: netsh branchcache smb set latency latency=Number, where Number is a numeric value, in milliseconds, for the maximum round trip network latency time.

Community Additions