I am experimenting with a scheduled task by making modifications to a
sucessful task. For example, I want to take something like
* "C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe" /
AUTOCHECK /AUTOFIX /AUTOCLOSE
and prefix it with
* cmd /c start "" /LOW /WAIT /B
to get a low priority execution (the spybot command is just an
example, it could be any command).
I normally make copies of something before making experimental
modifications. In this case, I intended to copy the task, disable the
original, then modify the copy. If the modification didn't work, I'd
revert back to the original.
However, though I can create tasks, I can't seem to make copies of
them. When I try, I am told that the copy had the same name as the
original. So it doesn't quite work like a file copy.
I tried copying the task to a temporary directory, changing the name,
then copying it back. When I made the copy, it had the extention
".job", even though it doesn't show up that way in the scheduled Tasks
folder (which is set to show file extensions). That's fine, I
thought, I'm sure scheduled tasks are a special creature. So I rename
the task and drag it into the Scheduled Task folder. When I try to
open it, I get the following error messages in a popup window entitled
"Task scheduler":
* "general page initialization failed"
* "the specific error is"
* "access denied"
* "an error has occurred attempting to retrieve task account
information"
* "you may continue editing the task object, but will be unable to
change task account information"
I figure it could be because I specified an local administrator in the
Run As field of the original task: LocalMachineName
\LocalAdminAccount. In fact, it was the very account that I was
logged into at the moment. I don't need to specify that, I thought,
it should run under that account anyway because I'm creating the task
while logged in as that account. Unfortunately, the field seemed to
be inaccessible.
Is copying a scheduled task even possible? If not, why was I allowed
to do so?
|