Solved

Scheduled Task Server 2012 only runs in the Run When The User is Logged On mode

Posted on 2016-09-27
4
37 Views
Last Modified: 2016-10-03
I have a task to download the file from a web site
It works perfectly in the Run When the User Logged On Mode, but does not run when I change to Run if The user is logged on or not mode.
The script is simple:
bitsadmin /transfer n http://www.treasury.gov/ofac/downloads/consolidated/cons_prim.del "C:\Program Files (x86)\LegalKEY\ES\002\cons_prim.del"
Also, even in the Run When the User Logged On Mode, the job would not stop running.

I need help configuring this correctly.
0
Comment
Question by:josephdts
  • 2
4 Comments
 
LVL 25

Expert Comment

by:Lionel MM
ID: 41819567
Try adding the "run with highest privileges" option found on the "general" tab at the bottom of that tab
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 500 total points
ID: 41819696
Searching for similar questions reveals that this seems to be an issue since several years - bitsadmin only works reliably in a logged-in session, for whatever reason.
I don't know if the same applies to BITS as such; if not,  the PowerShell BITS cmdlets can be used to run the download, but requires more effort.

The logged-in task however should be finished as soon as the download is. Note that you have to refresh task scheduler display manually to get the most recent status.
0
 

Accepted Solution

by:
josephdts earned 0 total points
ID: 41820106
Yes, the problem definitely is with the bitadmin. I have changed VB Script with System.Net.WebClient to download, and it runs with no issues.
0
 

Author Closing Comment

by:josephdts
ID: 41826029
I have figured myself that my approach with scheduling BITADMIN does not work with Task Scheduler, because BITADMIN itself is a task scheduling utility. I have completely re-written my code with VB Script in order to implement the Job.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Disable TLS1.0 on Win 2012 server 7 55
SSL CSR question 2 28
SVCHost Taking 99% Processor 5 49
How can I tell if drop outs to server are due to network or a bottle neck? 3 39
Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question