Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Task Scheduler

Posted on 2013-11-27
12
Medium Priority
?
398 Views
Last Modified: 2013-12-01
I am a local admin on the machine in question - will full authority.  When I try to create a task to run automatically, "whether user is logged on or not", "with the highest priviledges", I receiver the following error:

An error has occured for task "Job Name". Error message: The following error was reported: A specified logon session does does not exist. It may already have been terminated..

What settings do I need to change to allow this task to run while I am logged out?  Could there be a network policy that is bolcking this?
0
Comment
Question by:tdbrowning
  • 4
  • 3
  • 3
  • +1
12 Comments
 
LVL 21

Expert Comment

by:mastoo
ID: 39682200
What OS, and are you doing this from the gui or cmd prompt?
0
 

Author Comment

by:tdbrowning
ID: 39682219
Windows 7 OS, and it if from the GUI
0
 
LVL 21

Expert Comment

by:mastoo
ID: 39682305
There is a security policy that says no network credentials can be stored.  You might need to turn that policy off, but possibly if your task doesn't need network access you might be able to just check the box that says "Don't store password" on the task.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 13

Assisted Solution

by:ktaczala
ktaczala earned 1332 total points
ID: 39683590
create your task from the command prompt.

Open cmd.exe (run as admin). here's an example:

type:

 at 23:00 /every: m,t,w,th,f c:\runmytask.bat

this will run even if none is logged in.
0
 

Author Comment

by:tdbrowning
ID: 39685438
@ktaczala:  i'm not all that familiar with command prompt.  i'd like to test this at an earlier time than the specified date/time interval.

is there a command to only execute the batch file once?

and once I do set-up the recurring job, where do I find the job to modify it (if it needs modified in the future)?
0
 
LVL 57

Expert Comment

by:McKnife
ID: 39685445
0
 
LVL 13

Assisted Solution

by:ktaczala
ktaczala earned 1332 total points
ID: 39685626
just set the time to what ever you want using a 24hour clock(military time)
if you want to modify the procedure just modify the bat, scr, vbs that you are using file
if you want to change the task settings
do an "at" command from the command line find the task number associated with your task
then do an "at (number of the task) /delete
 that will cancel the task
then do an "at" command with the new settings.
0
 

Author Comment

by:tdbrowning
ID: 39685724
@McKnife - the group policy can not be altered for security purposes.  I may condsider trying to do this on a machine that is not under the policy, if all else fails
0
 
LVL 57

Accepted Solution

by:
McKnife earned 668 total points
ID: 39685736
I would not wait for "if all else Fails" because everything is pointing in this direction.
If that were not it, I would recommend to check whether that executing user has the right to logon as a batch job. This is a user privilege and rsop.msc executed at the client is the way to check it. It would be found in the section "user right assignment in the local security policy".

This priv. is needed to run scripts from scheduler.
0
 

Author Comment

by:tdbrowning
ID: 39687032
so, i don't have the priviledges needed, aparently.  i have tried every command that i can think of and nothing works.  I have tried to alter all the setting possible in task scheduler, too, and nothing works.

I was going to try and set-up everything on a pc that is not in our group policy, but that PC needs the software that is licensed to those in the policy (with no extra licenses.  ugh...
0
 
LVL 57

Expert Comment

by:McKnife
ID: 39688683
You did no award any points to mastoo's comment http://www.experts-exchange.com/Software/Office_Productivity/Productivity_Applications/Q_28305663.html#a39682305 - why? Did you figure out what the real root cause was yet? You should and then eliminate it. If the GPO is the root cause and it "can not be altered for sec. purposes" - ok, then why not use the system account for the task?
0
 
LVL 21

Expert Comment

by:mastoo
ID: 39688763
Thanks McKnife, I was thinking the same thing.  Also OP never acknowledged my suggestion about the checkbox for not storing the password, which seems like a possibility still.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

885 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