< Back

Enable-BCHostedClient

Tue Jan 29, 2019 10:13 pm

NAME Enable-BCHostedClient



SYNOPSIS

Configures BranchCache to operate in hosted cache client mode.





SYNTAX

Enable-BCHostedClient [-ServerNames] <String[]> [-CimSession <CimSession[]>] [-Force] [-ThrottleLimit <Int32>] [-UseVersion {Windows7 | Windows8}]

[-Confirm] [-WhatIf] [<CommonParameters>]



Enable-BCHostedClient [-CimSession <CimSession[]>] [-Force] [-ThrottleLimit <Int32>] -UseSCP [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Enable-BCHostedClient cmdlet configures BranchCache to operate in hosted cache client mode.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession

or Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ServerNames <String[]>

Specifies the names of the hosted cache servers that the client computer can use to store content and obtain content.



Required? true

Position? 2

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0

is entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running

on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UseSCP <SwitchParameter>

Indicates that the client should locate hosted cache servers by using service connection points (SCP). A service connection point is an Active

Directory object used to publish service specific data. A hosted cache server may register a service connection point object associated with

the active directory site in which it resides. This is achieved with the RegisterSCP parameter on the Enable-BCHostedServer cmdlet.



If this parameter is specified, then this computer attempts to automatically discover a hosted cache server associated with the assigned

active directory site by searching for an SCP.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UseVersion [<HostedCacheVersion>]

Specifies the version of the offer protocol to use when contacting this hosted cache server.



This parameter controls which protocol the client should use when communicating with the hosted cache server. The value Windows8 specifies

that the client uses HTTP. The value Windows7 specifies that the client uses HTTPS.

If this parameter is not specified, and a hosted cache server name is provided, then a value of Windows8 is used.

If the UseSCP parameter is used, then a value of Windows7 is used.



Hosted cache servers that are running Windows Server???? 2012 do not need to enroll a certificate, and client computers can contact these servers

to store or obtain content by using the HTTP protocol on the TCP port 80. However, Windows????7-based hosted cache servers must have a

certificate enrolled, and can only be contacted when client computers use the HTTPS protocol on the TCP port 443.



Note: Windows????7-based computers can only contact hosted cache servers by using the HTTPS protocol; because of this, a hosted cache server that

is running Windows Server 2012 can be configured to accept requests over both HTTP and HTTPS so that the hosted cache server can operate with

Windows????7-based computers and with client computers that are running Windows???? 8.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

None







Example 1: Enable host cache client mode



PS C:\\>Enable-BCHostedClient -ServerNames "HC.contoso.com" -UseVersion Windows7



This command enables hosted cache client mode using the HC.contos.com computer as a hosted cache server. For HTTPS, use Windows?????? 7 mode (Windows7).





Example 2: Enable host cache client mode for two servers



PS C:\\>Enable-BCHostedClient -ServerNames "HC1.contoso.com","HC2.contoso.com" -UseVersion Windows8



This command enables hosted cache client mode with two hosted cache servers: HC1.contoso.com and HC2.contoso.com. For HTTP, use Windows 8 mode

(Windows8).







RELATED LINKS

Enable-BCHostedServer