bitsadmin geterrorcount
Retrieves a count of the number of times the specified job generated a transient error. Windows commands reference
On Windows
Windows
bitsadmin /geterrorcount <job>
To retrieve error count information for the job named myDownloadJob
bitsadmin /geterrorcount myDownloadJobIdentifyjobThe job's display name or GUID.