Re: Scheduler "Path not found" err - More info

From: Steve Morgan (SteveMorgan_at_discussions.microsoft.com)
Date: 11/10/04


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
>



Relevant Pages

  • Re: Administrator user
    ... then login using the administrator account. ... Are you saying that the built-in Administrator account is visible? ... Err - You think you do it the same way, Err, or you know, Err you do it the ...
    (microsoft.public.windows.vista.general)
  • Re: How do I get Email send and receive into my primary mailbox?
    ... "RGS" wrote in message ... like to send and receive from the primary mailbox account. ... Outlook sends from the default email account by err, ...
    (microsoft.public.outlook)
  • Re: Password protect a folder
    ... If you expand the English section it's under err WINDOWS!!!!!! ... Windows doesn't work like that. ... Give your User Account a password and ... deny access to other users. ...
    (microsoft.public.office.misc)