Map folder before logging in to machine (for backup purposes) - TechRepublic
Question
January 20, 2009 at 11:39 PM
kabooki29

Map folder before logging in to machine (for backup purposes)

by kabooki29 . Updated 17 years, 5 months ago

Hi everyone. I would like to ask your technical expertise regarding my question. Here’s the scenario:

Our Win2003 server (server A) has a scheduled backup (using Windows Scheduled Task) every night which is saved on a hard disk of different server (Server B). Server A also is configured to shutdown every night after the backup has ran. I need to map a shared folder in Server B automatically (without logging in to the machine) after booting so that the backup will run later that day. How can I do this? Please note that Server A’s domain is different from Server B.

I have already done a script, as below, and saved it under the Startup folder of Server A. It is actually running problem is I need to login to the machine before it can work. I also tried putting this script on the GPO of Server A (Computer Config – Windows Settings – Startup Script), and checked that its running using gpresult. But when I check the network drives, the shared folder is not there. Is there a special permission I need to provide for the credential that I used in my batch file? What would be the correct way to do this? Please help.. Thanks!

Here’s the script:

if exist Y: net use Y: /delete
net use y: \\10.1.70.28\DELLRoot_backup password /user:INOKSG\thery /persistent:no

This discussion is locked

All Comments