Task scheduler wont work on logoff

G

Guest

I want to run a large number of hourly reports (09:-22:00, Monday to Sunday)
on my work (networked) computer.

The problem is that these reports work fine when logged on to network and
when the real time database is running - but when it auto logs off (every 10
min or so I think for network security) the scheduled tasks fail to run.

I've pointed this out to the network manager and can see the problem of
disabling the logoff - but is there not a solution to this?

I've unticked the 'run only run if logged on' checkbox in the Task
scheduler, having left the database running - but find the schedule has not
run when I log back on.

Is there some setting(s) in Task scheduler I could use to overcome the
proble - i.e. run thetask when logged off (preferred option for security
reasons)

Or could I use the tas scheduler to schedule logoffs and logons at a min or
so before the time te tasks are due to run and a min or so after they have
finished running?

Many thanks for your help!
 
P

Pegasus \(MVP\)

Zakynthos said:
I want to run a large number of hourly reports (09:-22:00, Monday to Sunday)
on my work (networked) computer.

The problem is that these reports work fine when logged on to network and
when the real time database is running - but when it auto logs off (every 10
min or so I think for network security) the scheduled tasks fail to run.

I've pointed this out to the network manager and can see the problem of
disabling the logoff - but is there not a solution to this?

I've unticked the 'run only run if logged on' checkbox in the Task
scheduler, having left the database running - but find the schedule has not
run when I log back on.

Is there some setting(s) in Task scheduler I could use to overcome the
proble - i.e. run thetask when logged off (preferred option for security
reasons)

Or could I use the tas scheduler to schedule logoffs and logons at a min or
so before the time te tasks are due to run and a min or so after they have
finished running?

Many thanks for your help!

You should schedule the task to run under an account other than
your foreground logon account.
 
G

Guest

Pegasus (MVP) said:
You should schedule the task to run under an account other than
your foreground logon account.


How would I do this?

What is an account other than my 'foreground logon account'?

Does this mean if I logon with a network administrators account with full
administrative rights to the network it will work?
 
P

Pegasus \(MVP\)

Zakynthos said:
What is an account other than my 'foreground logon account'?

Does this mean if I logon with a network administrators account with full
administrative rights to the network it will work?

The best method is for you to create an account called
"Schedule". Here is a quick way to do it:
- Click Start / Run / cmd {OK}
- Type these commands:
net user Schedule xxyyzz /add {Enter}
net localgroup administrators Schedule /add {Enter}

You will now have an account on this PC called "Schedule",
with a password of xxyyzz. You specify this account when
creating your task but you do not use it for anything else.
 
P

Pegasus \(MVP\)

See below.

Zakynthos said:
Not sure if I've done this correctly.

I entered the commands in Start/Run as specified - and re-booted computer -
so I asume an account called 'Schedule' has been set up with a password I
specified in the command line.

Never assume - always check things to be sure. In this case
you start another Command Prompt and type this command:

net user {Enter}

It shows all accounts defined on your PC. Is the "Schedule" account
there?
Do I logon as a user called 'schedule' - if so, don't see this if I go to
control panel/settings/user accounts?

No, you don't. The "Schedule" account should be entered
when you schedule a job in the Task Scheduler.
Don't think this is likely, however, from what you've said.

If not, spcifically, how and where do I indicate that the schedule to be run
is 'Schedule'?

When you schedule a job in the Task Scheduler then you
are prompted for an account name & password. This is
the place to enter the "Schedule" account and its password!
 
P

Pegasus \(MVP\)

Why search for examples of the command syntax on
the net? I gave you the exact syntax in my second
reply! I can't really add anything to these commands.


Zakynthos said:
Many thanks for your further help on this - I think I'm nearly there but .......

I tried NET USER {Enter}
and found an account had NOT been created

I can see that the syntax needs to be exact of course and get feedback on
this on entering the code you gave me but despite trying several combinations
as below (or something similar) can't seem to get it right, much to my
frustration!!!

Assuming, then, that I want to add a user account to localgroup
administrators called 'Schedule' with a password zq1243, what would be the
precise way to add this after NET USER at the command prompt?

I've tried something like:

["Schedule" zq1243]{/ADD} {/DOMAIN}]

and various combinations of this with and without quotation marks

e.g. [Schedule etc etc]

where am I going wrong?

I've tried to search for examples of this syntax on te microsoft site but
without success.

Many thanks, once again.



Pegasus (MVP) said:
See below.



Never assume - always check things to be sure. In this case
you start another Command Prompt and type this command:

net user {Enter}

It shows all accounts defined on your PC. Is the "Schedule" account
there?


No, you don't. The "Schedule" account should be entered
when you schedule a job in the Task Scheduler.
be
run

When you schedule a job in the Task Scheduler then you
are prompted for an account name & password. This is
the place to enter the "Schedule" account and its password!
to
network logs
off fail
to the
Task logons
at a after
they with
full
 
P

Pegasus \(MVP\)

Thanks for the feedback.

Zakynthos said:
Sincere apologies - I missed the space before the " /Add" so got error'
message which appeared to show 'correct' syntax.

Anyway, now works perfectly.

Once again, many thanks for your invaluable help.

Pegasus (MVP) said:
Why search for examples of the command syntax on
the net? I gave you the exact syntax in my second
reply! I can't really add anything to these commands.


Zakynthos said:
Many thanks for your further help on this - I think I'm nearly there
but
.......
I tried NET USER {Enter}
and found an account had NOT been created

I can see that the syntax needs to be exact of course and get feedback on
this on entering the code you gave me but despite trying several combinations
as below (or something similar) can't seem to get it right, much to my
frustration!!!

Assuming, then, that I want to add a user account to localgroup
administrators called 'Schedule' with a password zq1243, what would be the
precise way to add this after NET USER at the command prompt?

I've tried something like:

["Schedule" zq1243]{/ADD} {/DOMAIN}]

and various combinations of this with and without quotation marks

e.g. [Schedule etc etc]

where am I going wrong?

I've tried to search for examples of this syntax on te microsoft site but
without success.

Many thanks, once again.



:

See below.

Not sure if I've done this correctly.

I entered the commands in Start/Run as specified - and re-booted
computer -
so I asume an account called 'Schedule' has been set up with a password I
specified in the command line.

Never assume - always check things to be sure. In this case
you start another Command Prompt and type this command:

net user {Enter}

It shows all accounts defined on your PC. Is the "Schedule" account
there?

Do I logon as a user called 'schedule' - if so, don't see this if
I go
to
control panel/settings/user accounts?

No, you don't. The "Schedule" account should be entered
when you schedule a job in the Task Scheduler.

Don't think this is likely, however, from what you've said.

If not, spcifically, how and where do I indicate that the schedule
to
be
run
is 'Schedule'?

When you schedule a job in the Task Scheduler then you
are prompted for an account name & password. This is
the place to enter the "Schedule" account and its password!

I know where the password is added and confirmed - but I
can't be specifying 'Schedule' correctly as get an error code that the
account nmeis no recognised.



:

Many thanks for your advice - I'll give it a try!

:




:


I want to run a large number of hourly reports (09:-22:00,
Monday to
Sunday)
on my work (networked) computer.

The problem is that these reports work fine when logged
on
to
network
and
when the real time database is running - but when it
auto
logs
off
(every
10
min or so I think for network security) the scheduled
tasks
fail
to
run.

I've pointed this out to the network manager and can see the
problem
of
disabling the logoff - but is there not a solution to this?

I've unticked the 'run only run if logged on' checkbox
in
the
Task
scheduler, having left the database running - but find the
schedule
has
not
run when I log back on.

Is there some setting(s) in Task scheduler I could use to
overcome
the
proble - i.e. run thetask when logged off (preferred
option
for
security
reasons)

Or could I use the tas scheduler to schedule logoffs and logons
at a
min
or
so before the time te tasks are due to run and a min or
so
after
they
have
finished running?

Many thanks for your help!

You should schedule the task to run under an account other than
your foreground logon account.


How would I do this?

What is an account other than my 'foreground logon account'?

Does this mean if I logon with a network administrators
account
with
full
administrative rights to the network it will work?

The best method is for you to create an account called
"Schedule". Here is a quick way to do it:
- Click Start / Run / cmd {OK}
- Type these commands:
net user Schedule xxyyzz /add {Enter}
net localgroup administrators Schedule /add {Enter}

You will now have an account on this PC called "Schedule",
with a password of xxyyzz. You specify this account when
creating your task but you do not use it for anything else.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top