bitsadmin setcredentials
Adds credentials to a job. Windows commands reference
On Windows
Windows
Adds credentials to a job. NOTE: This command isn't supported by BITS 1.2 and earlier.
bitsadmin /setcredentials <job> <target> <scheme> <username> <password>
To add credentials to the job named myDownloadJob
bitsadmin /setcredentials myDownloadJob SERVER BASIC Edward password20IdentifyjobThe job's display name or GUID.targetUse either SERVER or PROXY.schemeUse 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_nameThe name of the user.passwordThe password associated with the provided Username.