Re: scheduled jobs under a different user profile

Tech-Archive recommends: Speed Up your PC by fixing your registry



Extra spacing (triple spaced?!) removed due to... just being too long. heh

KenC1231 wrote:
We have an XP PC.

User who logs in is JSMITH. User has three scheduled jobs set up
on the PC. (The jobs must run from a PC. Application software
limitation.)

When JSMITH password expires, jobs fail. User has to always
remember to reset all scheduled jobs every time they reset their
password.

So we created a new profile called SCHEDJOB whose password never
expires and has restricted access so it can only be used for
scheduled jobs.

We log onto JSMITH"s PC as SCHEDJOB and update the scheduled jobs
to the SCHEDJOB user profile. We also learned that we need to add
all drive mapping under SCHEDJOB as exists under JSMITH. We then
run each of the scheduled jobs while logged on as SCHEDJOB. They
all work fine.

We then log off and back on to the PC as JSMITH. We try to run any
of the jobs and get an error

'Can't find working directory'.

The command line in the scheduled job is
R:\rrww.exe.......

The R: drive is mapped under both the JSMITH and SCHEDJOB users.
(We know it is because the jobs run successfully under the SCHEDJOB
user profile.)

Can anyone assist with why the jobs won't run under the JSMITH user
profile ?

Because you cannot map the R:\ drive as both accounts at the same time from
the same computer.

Since you are running the job as SCHEDJOB, it assumes (just like using
RUNAS) that you want to use the drives available to SCHEDJOB - not the
non-local ones available to the current user. Since R is not a local drive
and the SCHEDJOB user has no drives mapped when you run the scheduled task,
R is not available to the scheduled task (since it is not available to
SCHEDJOB.)

If "SCHEDJOB" hass access to the share R is being mapped to - what happens
if you try UNC paths? Or does this NEED the actual drive letter?

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


.



Relevant Pages