Re: Unable to map drive under Taskmanager

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Matt Hickman (hemo_jr_at_space.com)
Date: 04/23/04


Date: 23 Apr 2004 15:29:14 -0700


"Prasanna" <prasanna@evidentsoftware.com> wrote in message news:<365701c4295c$d55c1bd0$a401280a@phx.gbl>...
> I have a script that maps a drive to a remote machine and
> gets some parameters of a file. The script works when
> executed from the command prompt. However, it fails when
> scheduled as a Taskmanager job. The script is running
> under a user with Administrative rights. Can someone
> please give me any workarounds ???

Using the same ID? Local Admin rights or admin rights
on the remote machine as well?
 
Select "Properties" for your Scheduled Task. Fill in the
"Run as:" with an ID that has rights to the remote share
and the files its needs to read. If the ID you are running
it under already has rights, something else may be wrong.
Redirect the stdout and stderr to a log file so that you can
see what problems it is having.

-- 
Matt Hickman   
  Sometime much later I became aware of "married" feeling--something 
  warm snuggled up to my back...she was sobbing softly.
                         Robert A. Heinlein (1907 - 1988)
                         _The Moon Is a Harsh Mistress_ c 1966


Relevant Pages

  • Re: Changing Registry ACL (need some more help)
    ... I tried SetACL.exe and I can't get in to the users registry. ... The user has admin rights to his/her computer and has removed the ... I tried this first using a login script. ... Probably because of the rights. ...
    (microsoft.public.scripting.wsh)
  • Escalation of privilege
    ... When a user, without any admin rights, logs on, a logon script is executed. ... This VB script modifies some registry keys and entries ...
    (microsoft.public.security)
  • Escalation of privilege
    ... When a user, without any admin rights, logs on, a logon script is executed. ... This VB script modifies some registry keys and entries ...
    (microsoft.public.win2000.security)
  • Re: Cant get something basic to work (WMI)
    ... Try creating a simple application, like notepad, on the remote machine, ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of any included script samples are subject to the terms specified at ...
    (microsoft.public.vc.language)
  • Re: Cant get something basic to work (WMI)
    ... Try creating a simple application, like notepad, on the remote machine, ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of any included script samples are subject to the terms specified at ...
    (microsoft.public.win32.programmer.wmi)