text
stringlengths
0
4.23k
Note
This command isn't supported by BITS 1.2 and earlier.
Syntax
bitsadmin /setcredentials <job> <target> <scheme> <username> <password>
Parameters
Parameter
Description
job
The job's display name or GUID.
target
Use either SERVER or PROXY.
scheme
Use one of the following:BASIC. Authentication scheme where the user name and password are sent in clear-text to the server or proxy.DIGEST. A challenge-response authentication scheme that uses a server-specified data string for the challenge.NTLM. A challenge-response authentication scheme that uses the credentials of the user for authentication in a Windows network environment.NEGOTIATE (also known as the Simple and Protected Negotiation protocol). A challenge-response authentication scheme that negotiates with the server or proxy to determine which scheme to use for authentication. Examples are the Kerberos protocol and NTLM.PASSPORT. A centralized authentication service provided by Microsoft that offers a single logon for member sites.
user_name
The name of the user.
password
The password associated with the provided Username.
Examples
To add credentials to the job named myDownloadJob:
bitsadmin /setcredentials myDownloadJob SERVER BASIC Edward password20
bitsadmin setcustomheaders
Add a custom HTTP header to a GET request sent to an HTTP server. For more information about GET requests, see Method Definitions and Header Field Definitions.
Syntax
bitsadmin /setcustomheaders <job> <header1> <header2> <...>
Parameters
Parameter
Description
job
The job's display name or GUID.
<header1> <header2> and so on
The custom headers for the job.
<header1> <header2>
Examples
To add a custom HTTP header for the job named myDownloadJob:
bitsadmin /setcustomheaders myDownloadJob accept-encoding:deflate/gzip
bitsadmin setdescription
Sets the description for the specified job.
Syntax
bitsadmin /setdescription <job> <description>
Parameters
Parameter
Description
job
The job's display name or GUID.
description
Text used to describe the job.
Examples
To retrieve the description for the job named myDownloadJob:
bitsadmin /setdescription myDownloadJob music_downloads
bitsadmin setdisplayname
Sets the display name for the specified job.
Syntax
bitsadmin /setdisplayname <job> <display_name>
Parameters