Solved

How to persistently map a network drive to another domain?

Posted on 2007-12-06
3
1,004 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 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

Independent Software Vendors: 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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

737 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