Re: Mapping a drive automatically



Thanks for your response.

The login script is just a batch file sitting on the server I have scheduled
to process at server startup.

I need these drives mapped all the time (for file transfers back and forth)
regardless of if the server is logged in or not. I was trying to avoid if
the servers gets rebooted and no one logs into, these drives not being
availabe for the file transfers.

Thanks in advance for help.

"Pegasus (MVP)" wrote:


"Ann" <Ann@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5C2CC954-573B-49BD-9CAD-9093B7700649@xxxxxxxxxxxxxxxx
I have a need to map a drive between two servers, one is in a domain the
other is not. I also would like the drives to map if the server gets
rebooted but no one logs into it.

Here's what I've done so far.

I've created a .bat file with the appropriate net use commands. I've
scheduled a task to execute that batch file on system startup. Once I
reboot
the server the drives never map. I check the Scheduler log and it shows
an
exit status of 2.

The batch file will process and map the drives if I use other options
through Scheduler.

Is there a way to have the drives map without actually logging in to the
server?

Mapped drives are specific to the session under which they are mapped. If
you map a drive in the logon script then it won't be visible to a scheduled
task. Perhaps you tell us what you're really trying to do with your mapped
drive, and when. Someone will then suggest a suitable solution.



.



Relevant Pages

  • Re: Scheduler and Batch Files
    ... "Pegasus (MVP)" wrote: ... When I check the scheduler log, there isn't much more information than ... I mapped the drives ... Schedule this batch file on a problem machine, ...
    (microsoft.public.windows.server.general)
  • Re: Scheduler and Batch Files
    ... 3 of the 12 servers are doing everything as planned (my two ... When I check the scheduler log, ... Schedule this batch file on a problem machine, ... In general it is a bad idea to use mapped drives for scheduled ...
    (microsoft.public.windows.server.general)
  • Re: scheduled task can not access shared drive
    ... I've created a batch file on server A to generate a report and copy it ... when I use the task scheduler to run the batch it fails. ...
    (microsoft.public.win2000.general)
  • Re: Scheduler and Batch Files
    ... When I check the scheduler log, ... Schedule this batch file on a problem machine, ... In general it is a bad idea to use mapped drives for scheduled ...
    (microsoft.public.windows.server.general)
  • Re: Mapping a drive automatically
    ... the server gets rebooted but no one logs into it. ... I've scheduled a task to execute that batch file on system startup. ... Once I reboot the server the drives never map. ... Scheduler log and it shows an exit status of 2. ...
    (microsoft.public.windows.server.general)

Loading