Unable to map drive under Taskmanager

P

Prasanna

I have a script that maps a drive to a remote machine and
gets some parameters of a file. The script works when
executed from the command prompt. However, it fails when
scheduled as a Taskmanager job. The script is running
under a user with Administrative rights. Can someone
please give me any workarounds ???
 
M

Matt Hickman

Prasanna said:
I have a script that maps a drive to a remote machine and
gets some parameters of a file. The script works when
executed from the command prompt. However, it fails when
scheduled as a Taskmanager job. The script is running
under a user with Administrative rights. Can someone
please give me any workarounds ???

Using the same ID? Local Admin rights or admin rights
on the remote machine as well?

Select "Properties" for your Scheduled Task. Fill in the
"Run as:" with an ID that has rights to the remote share
and the files its needs to read. If the ID you are running
it under already has rights, something else may be wrong.
Redirect the stdout and stderr to a log file so that you can
see what problems it is having.

--
Matt Hickman
Sometime much later I became aware of "married" feeling--something
warm snuggled up to my back...she was sobbing softly.
Robert A. Heinlein (1907 - 1988)
_The Moon Is a Harsh Mistress_ c 1966
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top