Solved

How to persistently map a network drive to another domain?

Posted on 2007-12-06
3
994 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Server Login Issue 4 39
how can I practice with windows server os 2 44
Wireshark 7 52
SCCM And Branchcache Server 1 31
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now