Solved

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

Posted on 2011-09-13
1
287 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

21 Experts available now in Live!

Get 1:1 Help Now