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