Scheduling a task on remote machine

From: Dmitry Khodorkovsky (dkhodor@rogers.com)
Date: 08/09/02


From: "Dmitry Khodorkovsky" <dkhodor@rogers.com>
Date: Thu, 8 Aug 2002 23:30:39 -0400


Hello,

I recently ran into an interesting problem of scheduling a task using Win2K
Task Scheduler's API on remote machine. Seems, there is a special sequence
of function calls to be run --- like you can't first create a task, then
set target computer name and then schedule it, persist it. --- if you do
this, then computer name is taken as "NULL", i.e. local machine and task
gets saved on local machine instead.
However, if you set target computer name right away after initializing
TaskScheduler, then it may work if your process is running under account
that has administrative privileges on the remote machine.

Have anyone experienced such? I might got wrong somewhere.
Any suggestions are appreciated.

Thanks
Dmitry



Relevant Pages

  • Re: ASP.NET, C#, Process.GetProcesses
    ... getprocess call should be running on the LOCAL machine not a remote machine. ... you will need to setup proper access rights. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: EFS Questions
    ... I know it sounds confusing, but when the files exist on a remote machine, ... > certificate and keys are on my local machine. ... could I decrypt by just mapping a drive from my local machine ... > to my own local computer instead of using back-up and restore (yes, ...
    (microsoft.public.win2000.security)
  • Re: ASP.NET, C#, Process.GetProcesses
    ... >> This command purpose is to find some proccess on local machine and do ... because it seems to grab the proccesses from ... >> the remote machine (what is totally wrong, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Permission for simple file sharing folders blocked on Workgrou
    ... > Guest account - it must be enabled for it to work. ... any network user can access the share. ... > Under Regular File Sharing, the local machine must have an account ... > on the remote machine with which it can log in. ...
    (microsoft.public.windowsxp.general)
  • Re: Permission for simple file sharing folders blocked on Workgrou
    ... > Guest account - it must be enabled for it to work. ... any network user can access the share. ... > Under Regular File Sharing, the local machine must have an account ... > on the remote machine with which it can log in. ...
    (microsoft.public.windowsxp.general)