Solved

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

Posted on 2016-09-27
4
40 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 70

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

710 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