How to check scheduled task status

G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.registry (More info?)

Hi, I want to run a script remotely to check if the scheduled task runs good
on all client PCs. Does someone have any idea?
Thanks,
emrli
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.registry (More info?)

Well, as you did not specify on which systems you will use this, I will
assume you are using XP Pro. On XP You could use something like

schtasks /query /fo LIST /v

to display the properties of the tasks. One of the properties is the last
run field. If you could input the results of the query above and then check
for this field, you may achieve what you are looking for.

Just my two cents...

Adil

"bluescreen" <uorubasz@ybb.ne.jp> wrote in message
news:OUx%23H20YEHA.1656@TK2MSFTNGP09.phx.gbl...
> Hi, I want to run a script remotely to check if the scheduled task runs
good
> on all client PCs. Does someone have any idea?
> Thanks,
> emrli
>
>
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.registry (More info?)

Oh, I also just founf this on XP help...

To log tasks scheduled for a remote computer
The following command requests a list of tasks scheduled for a remote
computer, and adds the tasks to a comma-separated log file on the local
computer. You can use this command format to collect and track tasks that
are scheduled for multiple computers.

The command uses the /s parameter to identify the remote computer, Reskit16,
the /fo parameter to specify the format and the /nh parameter to suppress
the column headings. The >> append symbol redirects the output to the task
log, p0102.csv, on the local computer, Svr01. Because the command runs on
the remote computer, the local computer path must be fully qualified.

schtasks /query /s Reskit16 /fo csv /nh >> \\svr01\data\tasklogs\p0102.csv

In response, SchTasks.exe adds the tasks scheduled for the Reskit16 computer
to the p0102.csv file on the local computer, Svr01.

Hope it helps...
Adil
"sc0ri0n" <sc0ri0n@hotmail.com> wrote in message
news:0LydndPlFPjb9mzdRVn-ig@comcast.com...
> Well, as you did not specify on which systems you will use this, I will
> assume you are using XP Pro. On XP You could use something like
>
> schtasks /query /fo LIST /v
>
> to display the properties of the tasks. One of the properties is the last
> run field. If you could input the results of the query above and then
check
> for this field, you may achieve what you are looking for.
>
> Just my two cents...
>
> Adil
>
> "bluescreen" <uorubasz@ybb.ne.jp> wrote in message
> news:OUx%23H20YEHA.1656@TK2MSFTNGP09.phx.gbl...
> > Hi, I want to run a script remotely to check if the scheduled task runs
> good
> > on all client PCs. Does someone have any idea?
> > Thanks,
> > emrli
> >
> >
>
>