bitsadmin setmaxdownloadtime
Sets the download timeout in seconds. Windows commands reference
On Windows
Windows
bitsadmin /setmaxdownloadtime <job> <timeout>
To set the timeout for the job named myDownloadJob to 10 seconds.
bitsadmin /setmaxdownloadtime myDownloadJob 10IdentifyjobThe job's display name or GUID.timeoutThe length for the download timeout, in seconds.