text
stringlengths
0
4.23k
Examples
To get the configuration flags for the job named myDownloadJob:
bitsadmin /peercaching /getconfigurationflags myDownloadJob
bitsadmin peercaching and help
Applies to: Windows Server (All supported versions)
The bitsadmin command displays the command-line usage for the /peercaching switch when combined with /help switch.
bitsadmin
/peercaching
/help
Syntax
The following syntax is used:
bitsadmin /peercaching /help
Examples
To display the command-line help for the /peercaching switches, run the following command.
/peercaching
bitsadmin /peercaching /help
bitsadmin peercaching and setconfigurationflags
Sets the configuration flags that determine if the computer can serve content to peers and if it can download content from peers.
Syntax
bitsadmin /peercaching /setconfigurationflags <job> <value>
Parameters
Parameter
Description
job
The job's display name or GUID.
value
An unsigned integer with the following interpretation for the bits in the binary representation:To allow the job's data to be downloaded from a peer, set the least significant bit.To allow the job's data to be served to peers, set the second bit from the right.
Examples
To specify the job's data to be downloaded from peers for the job named myDownloadJob:
bitsadmin /peercaching /setconfigurationflags myDownloadJob 1
bitsadmin peercaching
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Lists the /peercaching switches.
Lists the /peercaching switches.
Syntax
bitsadmin /peercaching /help
bitsadmin /peercaching /setconfigurationflags
bitsadmin /peercaching /getconfigurationflags
Parameters
Parameter
Description
bitsadmin peercaching and help
Displays the command-line usage for the /peercaching switches.
bitsadmin peercaching and setconfigurationflags
Sets the configuration flags that determine if the computer can serve content to peers and if it can download content from peers.
bitsadmin peercaching and getconfigurationflags
Gets the configuration flags that determine if the computer serves content to peers and if it can download content from peers.
bitsadmin peers and clear
Applies to Windows Server (All supported versions)
The bitsadmin /peers /clear command clears the peer list.
bitsadmin /peers /clear
Syntax
bitsadmin /peers /clear
Examples
To clear the peer list.
bitsadmin /peers /clear
bitsadmin peers and discover
Applies to: Windows Server (All supported versions)
The bitsadmin peers and discover command rediscovers peers.
Syntax
bitsadmin /peers /discover
Examples
To rediscover peers: