Solved

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

Posted on 2016-09-27
4
22 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 24

Expert Comment

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In my previous Experts Exchange Articles (http://www.experts-exchange.com/ARTH_1864316.html?arthOrderBy=3&arthSort=1#arth), most have featured Basic and Intermediate VMware Topics.  As a Virtualisation Consultant, we implement many different virtual…
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now