Re: scheduled task never run on RDP?



You can monitor a scheduled task via a console or RDP
session if
a) you log on first under the same account as used by the
scheduled task, and
b) the scheduled task starts after you have completed
the logon process.

The usual method to monitor a scheduled task is by
placing its commands into a batch file, then collecting
the standard and error output from each command into
separate log files.


"ykffc" <ykffc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E095614-F97A-4611-BDA8-8171BEFB46FD@xxxxxxxxxxxxxxxx
> <quote>To watch a task execute, you must be logged on under
> the same account as the account that is used for the scheduled
task.</quote>
> agree
> <quote> Whether your current session is a console or an RDP session is
> irrelevant</quote> Maybe you've misread my question. I'd better put up the
> question differently: is there any way I could monitor an automated
scheduled
> task via a RDP session? Monitoring means to be able to interact with the
> program as required and/or break the running code when required (but via a
> RDP sesssion).
>
>
>
> "Pegasus (MVP)" wrote:
>
> > See below.
> >
> > "ykffc" <ykffc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:CC9122CA-125E-412E-8CA3-7BD172E16B50@xxxxxxxxxxxxxxxx
> > > I am able to run an already-created scheduled task from the RDP
(remote
> > > desktop) by right-click a task, then select run. Is it true that no
matter
> > > how the task is set-up, we could only interact with it from the
console,
> > but
> > > never on a remote desktop? I was made to believe (based on
experience)
> > that
> > > I an never see what is going on (with the task I started via a
scheduler)
> > > unless I am sitting in front of the console, true or not?
> > To watch a task execute, you must be logged on under
> > the same account as the account that is used for the
> > scheduled task. Whether your current session is a
> > console or an RDP session is irrelevant.
> >
> > >
> > > Query 2: If a scheduled task is configured to run under a certain
Domain
> > > Account, will or could we make this task to run if the console is
logon as
> > a
> > > Local user when the computer starts up?
> > Scheduled tasks run independently of console sessions.
> >
> > > Query 3: Excuse me if I were repeating. Assume a scheduled task is
> > > configured to run under a certain Domain Account, and when the
computer
> > > starts up, assume the user signs in using a different Domain Account.
My
> > > experience says, the task will run in the background. (true?). Now
what
> > > happen if I logoff at the console and logon as a local user
(non-Domain
> > > user)? Will any tasks run on the scheduled hour?
> > Scheduled tasks will always run in the background.
> > However, the become visible under certain circumstances -
> > see the reply to Q1.
> >
> > However . . . I admit that I have seen some machines where
> > the scheduled task remained invisible no matter what!
> >
> >
> >


.



Relevant Pages

  • Re: scheduled task never run on RDP?
    ... Whether your current session is a console or an RDP session is ... >> I am able to run an already-created scheduled task from the RDP (remote ... > the same account as the account that is used for the ...
    (microsoft.public.win2000.general)
  • Re: Getting services to see subst drives
    ... it up for the service's session. ... which is created using subst. ... scheduled task, logon time scheduled task, and setting the service to run ... as my user account & trying an HKCU Run task, but none of that seems to ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows Handles and Terminal Services
    ... Services running as the Local System account & which are enabled to interact ... with the desktop run in TS session #0. ... edition and Win2K w/TS enabled, session #0 is always the console session, so ... the proper way to interact with a service is to use some sort of IPC ...
    (microsoft.public.win32.programmer.kernel)
  • Re: scheduled task never run on RDP?
    ... AUTOMATED scheduled task to run on remote desktop. ... leave the console signed on at all time. ... using the same account as those scheduled tasks are ... It seems you said I will then be able to monitor it. ...
    (microsoft.public.win2000.general)
  • Re: scheduled task never runs on RDP?
    ... > AUTOMATED scheduled task to run on remote desktop. ... > leave the console signed on at all time. ... using the same account as those scheduled tasks ... It seems you said I will then be able to monitor it. ...
    (microsoft.public.win2000.general)

Quantcast