text
stringlengths
0
4.23k
The /info switch returns the state of the job and the number of files and bytes transferred. When the state is shown as TRANSFERRED, it means that BITS has successfully transferred all files in the job. You can also add the /verbose argument to get complete details of the job, and /list or /monitor to get all the jobs in the transfer queue.
TRANSFERRED
To return the state of the job:
bitsadmin /info myDownloadJob /verbose
If multiple jobs use myDownloadJob as their name, you must use the job's GUID to uniquely identify it for completion.
Complete the download job
To complete the job after the state changes to TRANSFERRED:
TRANSFERRED
bitsadmin /complete myDownloadJob
You must run the /complete switch before the files in the job become available. If multiple jobs use myDownloadJob as their name, you must use the job's GUID to uniquely identify it for completion.
/complete
Monitor jobs in the transfer queue using the /list switch
To return the state of the job and the number of files and bytes transferred for all jobs in the transfer queue:
bitsadmin /list
Sample output
{6AF46E48-41D3-453F-B7AF-A694BBC823F7} job1 SUSPENDED 0 / 0 0 / 0
{482FCAF0-74BF-469B-8929-5CCD028C9499} job2 TRANSIENT_ERROR 0 / 1 0 / UNKNOWN
Listed 2 job(s).
Monitor jobs in the transfer queue using the /monitor switch
To return the state of the job and the number of files and bytes transferred for all jobs in the transfer queue, refreshing the data every 5 seconds:
bitsadmin /monitor
Note
To stop the refresh, press CTRL+C.
Sample output
MONITORING BACKGROUND COPY MANAGER(5 second refresh)
{6AF46E48-41D3-453F-B7AF-A694BBC823F7} job1 SUSPENDED 0 / 0 0 / 0
{482FCAF0-74BF-469B-8929-5CCD028C9499} job2 TRANSIENT_ERROR 0 / 1 0 / UNKNOWN
{0B138008-304B-4264-B021-FD04455588FF} job3 TRANSFERRED 1 / 1 100379370 / 100379370
Monitor jobs in the transfer queue using the /info switch
To return the state of the job and the number of files and bytes transferred:
bitsadmin /info
Sample output
GUID: {482FCAF0-74BF-469B-8929-5CCD028C9499} DISPLAY: myDownloadJob
TYPE: DOWNLOAD STATE: TRANSIENT_ERROR OWNER: domain\user
PRIORITY: NORMAL FILES: 0 / 1 BYTES: 0 / UNKNOWN
CREATION TIME: 12/17/2002 1:21:17 PM MODIFICATION TIME: 12/17/2002 1:21:30 PM
COMPLETION TIME: UNKNOWN
NOTIFY INTERFACE: UNREGISTERED NOTIFICATION FLAGS: 3
RETRY DELAY: 600 NO PROGRESS TIMEOUT: 1209600 ERROR COUNT: 0
PROXY USAGE: PRECONFIG PROXY LIST: NULL PROXY BYPASS LIST: NULL
ERROR FILE: https://downloadsrv/10mb.zip -> c:\10mb.zip
ERROR CODE: 0x80072ee7 - The server name or address could not be resolved
ERROR CONTEXT: 0x00000005 - The error occurred while the remote file was being
processed.
DESCRIPTION:
JOB FILES:
0 / UNKNOWN WORKING https://downloadsrv/10mb.zip -> c:\10mb.zip
NOTIFICATION COMMAND LINE: none
Delete jobs from the transfer queue
To remove all jobs from the transfer queue, use the /reset switch:
bitsadmin /reset
Sample output
{DC61A20C-44AB-4768-B175-8000D02545B9} canceled.
{BB6E91F3-6EDA-4BB4-9E01-5C5CBB5411F8} canceled.
2 out of 2 jobs canceled.
bitsadmin getaclflags
Retrieves the access control list (ACL) propagations flags, reflecting whether items are inherited by child objects.
Syntax
bitsadmin /getaclflags <job>
Parameters
Parameter
Description
job
The job's display name or GUID.
Remarks
Returns one or more of the following flag values:
o - Copy owner information with file.
g - Copy group information with file.
d - Copy discretionary access control list (DACL) information with file.
s - Copy system access control list (SACL) information with file.
Examples
To retrieve the access control list propagation flags for the job named myDownloadJob:
bitsadmin /getaclflags myDownloadJob
bitsadmin getbytestotal
Retrieves the size of the specified job.
Syntax
bitsadmin /getbytestotal <job>
Parameters
Parameter
Description