Enable BranchCache hosted 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 hosted cache mode using network shell (netsh) commands. Running the command below configures the client computer for hosted cache mode and automatically configures the client computer firewall with the following inbound exception for hosted cache mode: TCP port 80.

noteNote
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=HOSTEDCLIENT location=HostedCacheName, where HostedCacheName is the fully qualified domain name of the hosted cache server.

    noteNote
    If the hosted cache server and client computers are not joined to an Active Directory domain, set client authentication to NONE using the additional clientauthentication parameter in this command: Netsh branchcache set service mode=HOSTEDSERVER location=HostedCacheName clientauthentication=NONE

Community Additions

ADD
Show: