text stringlengths 0 4.23k |
|---|
Examples |
To run Notepad.exe at the completion of the job named myDownloadJob: |
bitsadmin /setnotifycmdline myDownloadJob c:\winnt\system32\notepad.exe NULL |
To show the EULA text in Notepad.exe, at the completion of the job named myDownloadJob: |
bitsadmin /setnotifycmdline myDownloadJob c:\winnt\system32\notepad.exe notepad c:\eula.txt |
bitsadmin setnotifyflags |
Sets the event notification flags for the specified job. |
Syntax |
bitsadmin /setnotifyflags <job> <notifyflags> |
Parameters |
Parameter |
Description |
job |
The job's display name or GUID. |
notifyflags |
Can include one or more of the following notification flags, including:1. Generates an event when all files in the job have been transferred.2. Generates an event when an error occurs.3. Generates an event when all files have completed transfer or when an error occurs.4. Disables notifications. |
Examples |
To set the notification flags to generate an event when an error occurs, for a job named myDownloadJob: |
bitsadmin /setnotifyflags myDownloadJob 2 |
bitsadmin setpeercachingflags |
Sets flags that determine if the files of the job can be cached and served to peers and if the job can download content from peers. |
Syntax |
bitsadmin /setpeercachingflags <job> <value> |
Parameters |
Parameter |
Description |
job |
The job's display name or GUID. |
value |
An unsigned integer, including:1. The job can download content from peers.2. The files of the job can be cached and served to peers. |
Examples |
To allow the job named myDownloadJob to download content from peers: |
bitsadmin /setpeercachingflags myDownloadJob 1 |
bitsadmin setpriority |
Sets the priority of the specified job. |
Syntax |
bitsadmin /setpriority <job> <priority> |
Parameters |
Parameter |
Description |
job |
The job's display name or GUID. |
priority |
Sets the priority of the job, including:FOREGROUNDHIGHNORMALLOW |
Examples |
To set the priority for the job named myDownloadJob to normal: |
bitsadmin /setpriority myDownloadJob NORMAL |
bitsadmin setproxysettings |
Sets the proxy settings for the specified job. |
Syntax |
bitsadmin /setproxysettings <job> <usage> [list] [bypass] |
Parameters |
Parameter |
Description |
job |
The job's display name or GUID. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.