Scheduled tasks on remote machines
From: KG (aitog_at_noemail.nospam)
Date: 02/23/05
- Next message: Martijn Laan: "Re: SE_REGISTRY_WOW64_64KEY?"
- Previous message: Rhett Gong [MSFT]: "Re: SE_REGISTRY_WOW64_64KEY?"
- Next in thread: Rhett Gong [MSFT]: "RE: Scheduled tasks on remote machines"
- Reply: Rhett Gong [MSFT]: "RE: Scheduled tasks on remote machines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 23 Feb 2005 14:32:07 +0200
Hi
I am using the ITaskScheduler interface to schedule tasks on a remote
machine using ITaskScheduler::SetTargetComputer() method.
The documentation states that: "The current user on the remote computer
must have administrative access to use this method".
Which makes sense. But I am not sure exactly which method to use to get
the correct privileges.
In a non-AD environment, with the user on the local
machine logged in as LOCAL/Administrator, how do you schedule tasks on say
REMOTE/Administrator?
As a test I have also tried using runas and schtasks (eventually I need
to do it programmatically):
runas /user:REMOTE/Administrator "schtasks..."
and
schtasks /S REMOTE /u REMOTE/Administrator ...
But this also gives a "access denied" error (at least between machines
running Windows XP).
Another possibly related problem is that on win2000 I used to see the
"Scheduled Tasks" node when browsing the REMOTE host in explorer but this
is missing on the XP host.
Thanks
KG
- Next message: Martijn Laan: "Re: SE_REGISTRY_WOW64_64KEY?"
- Previous message: Rhett Gong [MSFT]: "Re: SE_REGISTRY_WOW64_64KEY?"
- Next in thread: Rhett Gong [MSFT]: "RE: Scheduled tasks on remote machines"
- Reply: Rhett Gong [MSFT]: "RE: Scheduled tasks on remote machines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|