Solved

Creating a batch file to map a drive from one domain to another

Posted on 2011-09-13
1
289 Views
Last Modified: 2012-05-12
I am trying to create a batch file to map a network drive from one domain to another. I thought the following might work but I seem to be missing something.

net use j :/delete
net use j :\\server name\share /USER: domain name \username password

0
Comment
Question by:ELGowen
1 Comment
 
LVL 6

Accepted Solution

by:
effes earned 250 total points
ID: 36532138
Hi ELGowen,

try putting the password before the /user parameter and watch those spaces on your lines:

net use j: /delete
net use j: "\\servername\share" password /user:domainname\username

Hope that helps,
Frank
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 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