Re: Mapping a drive automatically



I think I got what you're saying. Just use net use with UNCs to get to the
server and then move the file over.

"Lanwench [MVP - Exchange]" wrote:

Ann <Ann@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
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?

Drive mappings are for the convenience of people, not computers. For
computers to communicate, you need to use UNC paths. Why do you think you
need to use a mapped drive? If you are going to set it up in the batch file,
a) you will need to run the scheduled task with a domain account and b) you
will need to specify credentials in the batch file.



.



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)