Re: Scheduler "Path not found" err - More info
From: Steve Morgan (SteveMorgan_at_discussions.microsoft.com)
Date: 11/10/04
- Next message: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Previous message: Steve Thompson: "Add domain group to local group?"
- In reply to: Michael Harris \(MVP\): "Re: Scheduler "Path not found" err - More info"
- Next in thread: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Reply: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Reply: Michael Harris \(MVP\): "Re: Scheduler "Path not found" err - More info"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Nov 2004 06:47:04 -0800
Hi Micheal
Thnx for help so far, here's where I'm at.
The "wscript.network" code has allowed me to trap the user account being
used in my err logs and scheduler is runing the job under the correct domain
account.
The script tries to connect to 2 locations, the first is the destination for
files (defined as a UNC using IP address rather than server name) and this
results in the undocumented err number "-2147023570" (is there a
patern/reasoning behind these undocumented minus err codes?), no err
description.
The following attempted connection to the source (UNC path using IP address)
generates the err 76 "Path not found".
All this only under the Scheduled Task execution which is configured as
follows:
RUN: CScript C:\<dir>\CopyFile.vbs
START IN: CScript
RUN AS: <correct domain account>
What is the START IN property (no metion in win2k help files or in knowledge
base). Should this be "C:\WINNT\system32" as cscript runs under a command
shell?
Any ideas would be greate because at the moment I'm having to kick the vbs
script maually at 5pm then check it the next morning...
Steve
"Michael Harris (MVP)" wrote:
> > Reading around technet MS state that jobs running under AT scheduler
> > are run under the local Ststem Account and this can't be changed. As
> > I got the same errs from AT and the Scheduler GUI I'm wondering if
> > the scheduler GUI is failing to use the domain account I applied.
> >
> > Is there an easy way to capture the user info during exec? Bit Like
> > the SET dos command?
>
> set net = createObject("wscript.network")
> wscript.echo "username:", net.username, "userdomain:", net.userdomain
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
> Sammamish WA US
>
- Next message: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Previous message: Steve Thompson: "Add domain group to local group?"
- In reply to: Michael Harris \(MVP\): "Re: Scheduler "Path not found" err - More info"
- Next in thread: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Reply: Bob Barrows [MVP]: "Re: Scheduler "Path not found" err - More info"
- Reply: Michael Harris \(MVP\): "Re: Scheduler "Path not found" err - More info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|