Upravit

Sdílet prostřednictvím


bitsadmin setcredentials

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:
  • 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