Page 1 of 1

Unable to download a file via BITSADMIN, does it also require /DYNAMIC switch?

Posted: 04 May 2019 07:22
by BoQsc
First, I want to introduce you to a working script, that only downloads when I add /DYNAMIC switch to the BITSADMIN /Transfer command:

Code: Select all

set "downloadLink=http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe"
bitsadmin /transfer myDownloadJob /download /DYNAMIC /priority high %downloadLink% "%cd%\ddrelease64.exe"

I keep wondering, how can I add /DYNAMIC switch for the more verbose script to relieve host requirements for the file to be downloaded. (At least that's why I think that the below script does not work)




This is more verbose script that is downloading the same file (This script does not download anything somehow, although it should)
This script seems to not output any file after Job is completed. I'm unsure why, or what to do.

Code: Select all

@ECHO OFF
bitsadmin /Reset
bitsadmin /create "myDownloadJob"
::bitsadmin /SETPROXYSETTINGS "myDownloadJob" NO_PROXY

set "downloadLink=http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe"
bitsadmin /addfile "myDownloadJob" %downloadLink% "%cd%\ddrelease64.exe"

bitsadmin /resume myDownloadJob

bitsadmin /complete myDownloadJob

Output of the script

Code: Select all

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

0 out of 0 jobs canceled.

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

Created job {C46693A4-DE33-4DC0-B37E-2E03E6634E47}.

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

Added http://www.chrysocome.net/downloads/78057a17668093943717ee3c48c669fb/ddrelease64.exe -> C:\Users\Juozas\Desktop\ddrelease64.exe to job.

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

Job resumed.

BITSADMIN version 3.0
BITS administration utility.
(C) Copyright Microsoft Corp.

Job completed.
Press any key to continue . . .