?
Solved

How to persistently map a network drive to another domain?

Posted on 2007-12-06
3
Medium Priority
?
1,023 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 750 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

770 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