Enable-BCHostedClient
Configures BranchCache to operate in hosted cache client mode.
Syntax
Enable-BCHostedClient
[-Force]
[-ServerNames] <String[]>
[-UseVersion <HostedCacheVersion>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Enable-BCHostedClient
[-Force]
[-UseSCP]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Enable-BCHostedClient cmdlet configures BranchCache to operate in hosted cache client mode.
Examples
EXAMPLE 1
PS C:\>Enable-BCHostedClient -ServerNames HC.contoso.com -UseVersion Windows7
This example 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
PS C:\>Enable-BCHostedClient -ServerNames HC1.contoso.com,HC2.contoso.com -UseVersion Windows8
This example enables hosted cache client mode with two hosted cache servers: HC1.contoso.com and HC2.contoso.com.
For HTTP, use Windows 8 mode (Windows8
).
Parameters
-AsJob
ps_cimcommon_asjob
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Runs the cmdlet without prompting for confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServerNames
Specifies the names of the hosted cache servers that the client computer can use to store content and obtain content.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ThrottleLimit
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.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseSCP
Specifies 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 will attempt to automatically discover a hosted cache server associated with the assigned active directory site by searching for an SCP.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseVersion
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 Server 2008 R2-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: firstref_client_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.
Type: | HostedCacheVersion |
Accepted values: | Windows7, Windows8 |
Position: | Named |
Default value: | 1 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
None
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for