Solved

How to persistently map a network drive to another domain?

Posted on 2007-12-06
3
997 Views
Last Modified: 2008-02-01
I'm using Robocopy to backup files from a PC onto another PC that is on a different domain with no trust relationship, so I have to authenticate with whatever user I'm assigned to on the other domain.  Robocopy copies fine so long as I map a network drive FIRST (providing authentication) before running robocopy.  But I need to set this up automatically so that it'll backup on a daily basis without me having to map a network drive every single time.

I'm running this in a windows terminal session, so whenever I log out, the mapping disappears.  Is there an solution to this?
0
Comment
Question by:mainemonty
3 Comments
 
LVL 3

Expert Comment

by:martonejd
ID: 20422614
create a batch file to map the drive and put that file in the startup folder.  

net use (driveletter)  \\computername\sharename

just put that in a txt file, then rename it to filename.bat
0
 
LVL 21

Accepted Solution

by:
za_mkh earned 250 total points
ID: 20423022
There are more options that you will need since you need to use credentials from another domain
so it would be something like this
net use x:  \\server1\fileshare Password /user:[DomainName\]UserName /savecred /persistent:yes

the /savecred option could save your password and the /persistent option tells the computer to remember the drive mapping.

If you use the command as I listed there, the problem is that anybody who has access to the batch file will see you password which is what you need since you want it to be automatic. Hopefully the /persistent option saves it for your session!

Look at this url for more information:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true
0
 
LVL 5

Expert Comment

by:Nicholas Iler
ID: 20424331
When you add a network path there is an option for making it reconnect on log-in.
Other than this I would create a startup script, as the comments refer to above.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now