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

From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 11/10/04


Date: Wed, 10 Nov 2004 09:58:57 -0500

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.


Relevant Pages

  • Re: Logon Scripts over VPN connections
    ... What we do is to have the user cache his domain password on the computer by ... He then logs on to his domain account in order to establish ... log in again exactly as if he were connected to the network. ... However when I try to run a logon script to map ...
    (microsoft.public.scripting.vbscript)
  • Re: Encrypting VB startup script
    ... If all computers are members of the domain, and you have a domain account ... (any domain administrator member by default), you can script this remotely ... need to have access to whatever software you use to encrypt the script so ...
    (microsoft.public.windows.server.active_directory)
  • Re: Disable LPT1 script
    ... using their domain account - even with regular local user permissions, ... command manually from their computers while logged in as them, ... > work in a group policy startup script. ...
    (microsoft.public.win2000.networking)
  • Re: Join computer to a domain
    ... I'm not sure of the script or its effects, ... domain account specifically for domain joins. ... and, while you can change the number of machines a regular user can add, I ... > Should I create a special domain account for this script and where would I ...
    (microsoft.public.windows.server.scripting)