[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

copy files from one domain to another domain

Posted on 2000-05-04
11
Medium Priority
?
421 Views
Last Modified: 2013-12-28
What If the I'm on two different domains(Access) and I want to copy one file from a machine in one domain to another machine in another domain. How would I create a batch file, what commands?

0
Comment
Question by:7of9121098
[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
  • 2
  • 2
  • +3
11 Comments
 
LVL 2

Expert Comment

by:pschwan
ID: 2779135
You need to be a little more detailed.  Do you already have trust relationships set up?  Are you trying to do this as part of a login script?  A little more information is required.
0
 

Author Comment

by:7of9121098
ID: 2779179
Pschawan, this is no login script, All I want to do is create a batch file that copies one file from one domain(Machine1) to another domain (Machinee2). What do you mean by trust relationships? I'm able to browse the two domains in the Microsoft Network Neighbor hood. I would like to see the syntax with an example. Thanks.
0
 
LVL 2

Expert Comment

by:pschwan
ID: 2779283
I'm guessing, based on the description you just gave, that you don't have domains set up here.  I'm assuming you mean two different machines when you say "domains".

Try the following in the batch file:

net use T: \\Machine2\[share]
copy [file] t:
net use t: /delete

In this example, [share] represents the name of a shared directory created on the second machine and [file] is the name of the file you want to copy there.  This will map a drive, copy the file, and then delete the mapping.  Let me know if you are unsure how to share directories.

If I'm incorrect and you actually have two domain controllers set up with two different domains, or if you want more info, go to the command prompt and type NET USE /?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:carmine
ID: 2779928
or

copy \\machine1\share\file \\machine2\share\file

Mark
0
 
LVL 2

Expert Comment

by:ho_yin_leung
ID: 2780168
There is a lot other way transfer files, email, FTP etc.
Depends how big is the file, how regular it need to be transfer.
0
 
LVL 3

Expert Comment

by:cbo120897
ID: 2780235
And if your actuall account have no access to the domains:

net use T: \\M1\S1 P1 /user:U1
net use U: \\M2\S2 P2 /user:U2
copy T:\file U:
net use T: /delete
net use U: /delete

Mx   Machine 1-2
Sx   Share 1-2
P1   Password 1-2
U1   Username 1-2

bye cbo




0
 
LVL 3

Expert Comment

by:cbo120897
ID: 2780236
Px   Password 1-2
Ux   Username 1-2

:-)
0
 
LVL 23

Accepted Solution

by:
Tim Holman earned 150 total points
ID: 2780663
If the destination share has access to the everyone group, as long as your current domain account is not explicitly denied, you could just drag and drop the file.
Otherwise, you NEED an account on the destination domain.
The net use commands cbo's specified will only work if you do it like this :

net use {drive} \\server\resource /user:domain\username password

0
 

Author Comment

by:7of9121098
ID: 2781228
Thanks got it guys
0
 
LVL 3

Expert Comment

by:cbo120897
ID: 2785797
Hi Tim_Holman,I think the password is on wrong place...
cbo
0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2787734
Ooops !
My mistake - either way works, but you do need to specify the domain in order to connect to another domain's resources with which your domain does not have a trust relationship.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

649 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