Re: scheduled jobs under a different user profile
- From: KenC1231 <KenC1231@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 12:20:02 -0800
We've mapped the R: drive under each user: JSMITH and SCHEDJOB. We'ev also
mapped the Q: and Y: drives under both so they are indentical. Q: and Y: are
required to run the actual program and output the resulting file.
Can this whole scenario be eliminated if we set the PC to NOT require a
password on scheduled jobs ?
That way it doesn't matter what user the jobs run under.
Thanks for the quick response !
"Shenan Stanley" wrote:
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
- Follow-Ups:
- Re: scheduled jobs under a different user profile
- From: Shenan Stanley
- Re: scheduled jobs under a different user profile
- References:
- Re: scheduled jobs under a different user profile
- From: Shenan Stanley
- Re: scheduled jobs under a different user profile
- Prev by Date: Re: missing c:/documents and settings\user\my documents\my pictures
- Next by Date: Re: Help!!! Forgotten Password
- Previous by thread: Re: scheduled jobs under a different user profile
- Next by thread: Re: scheduled jobs under a different user profile
- Index(es):
Relevant Pages
|