Sign in with
Sign up | Sign in
Your question

Scheduled Tasks show running, but really aren't

Tags:
Last response: in Windows 2000/NT
Share
Anonymous
November 11, 2004 1:37:14 PM

Archived from groups: microsoft.public.win2000.security (More info?)

I have created a batch file to auto-create a scheduled task that
eliminates having to setup the task using the wizard, and to circumvent
the user account with password requirement.

I am using this script to create a schedule task from a dos prompt:

schtasks /create /sc daily /ru system /tn Bearback /st 22:00:00 /tr
"c:\p6\bearback.exe AUTO"

I found this syntax from MS site:

http://tinyurl.com/2l38n

Based on what MS says in this article, this creates a task using the NT
Authority/System account which should have administrator rights and that
does not have a password. This allows me to create a batch file that I
can have people run on their computers without having to walk them thru
the schedule task wizard.

The problem lies in only some XP SP1, SP2, Win2000, and the problem is
that the task will show as running but nothing happens. If I don’t end
the task it continues to show status of running until the default 72
hours expires.

If I open up Task Manager, click on Process tab, I can see the
Bearback.exe (what the schedule task is suppose to run) running but its
showing CPU usage as zero.

It doesn’t matter what the application or .exe is I’m calling on any
will behave the same way as described on certain computers only.

In trying to "fix" the tasks that don't really run, I have had them add
a password to the administator account, manually create the tasks.
Sometimes this works, other times it shows as running, but nothing is
really happening. I am stumped.

As I have a lot of non-computer literate people to tend to, I would
appreciate any assistance in figuring out what the problem is, or how
to fix it.



--
JetCityJules
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message466736.html
Anonymous
November 14, 2004 3:36:33 AM

Archived from groups: microsoft.public.win2000.security (More info?)

I don't know the problem offhand but you may also want to try using the AT
command instead. Depending on the task you may find that the /interactive
switch will need to be used. AT commands can be run as a computer startup
script via Group Policy and will run in system context. The link below
explains in more detail on how to use the AT command. --- Steve

http://support.microsoft.com/default.aspx?scid=kb;en-us;313565

"JetCityJules" <JetCityJules.1fkz2m@mail.webservertalk.com> wrote in message
news:JetCityJules.1fkz2m@mail.webservertalk.com...
>
> I have created a batch file to auto-create a scheduled task that
> eliminates having to setup the task using the wizard, and to circumvent
> the user account with password requirement.
>
> I am using this script to create a schedule task from a dos prompt:
>
> schtasks /create /sc daily /ru system /tn Bearback /st 22:00:00 /tr
> "c:\p6\bearback.exe AUTO"
>
> I found this syntax from MS site:
>
> http://tinyurl.com/2l38n
>
> Based on what MS says in this article, this creates a task using the NT
> Authority/System account which should have administrator rights and that
> does not have a password. This allows me to create a batch file that I
> can have people run on their computers without having to walk them thru
> the schedule task wizard.
>
> The problem lies in only some XP SP1, SP2, Win2000, and the problem is
> that the task will show as running but nothing happens. If I don't end
> the task it continues to show status of running until the default 72
> hours expires.
>
> If I open up Task Manager, click on Process tab, I can see the
> Bearback.exe (what the schedule task is suppose to run) running but its
> showing CPU usage as zero.
>
> It doesn't matter what the application or .exe is I'm calling on any
> will behave the same way as described on certain computers only.
>
> In trying to "fix" the tasks that don't really run, I have had them add
> a password to the administator account, manually create the tasks.
> Sometimes this works, other times it shows as running, but nothing is
> really happening. I am stumped.
>
> As I have a lot of non-computer literate people to tend to, I would
> appreciate any assistance in figuring out what the problem is, or how
> to fix it.
>
>
>
> --
> JetCityJules
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message466736.html
>
!