Re: Scheduler "Path not found" err - More info by Bob
Bob
Wed Nov 10 08:58:57 CST 2004
If you log in as that domain account, can you manually do the things you
want the script to do?
Bob Barrows
Steve Morgan wrote:
> 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
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.