Adds credentials to a job.
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:<ul><li>BASIC. Authentication scheme where the user name and password are sent in clear-text to the server or proxy.</li><li>DIGEST. A challenge-response authentication scheme that uses a server-specified data string for the challenge.</li><li>NTLM. A challenge-response authentication scheme that uses the credentials of the user for authentication in a Windows network environment.</li><li>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.</li><li>PASSPORT. A centralized authentication service provided by Microsoft that offers a single logon for member sites.</li></ul> |
| 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
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
