Link to home
Start Free TrialLog in
Avatar of mihalakj
mihalakj

asked on

Command line copy across domains

I need to be able to copy a file via command line from a server in one win2k3 domain to another server in a different win2k domain.  There is no trust between the domains, but I do have administrator credentials that I can pass in the command line to execute the copy.  I checked copy, xcopy and robocopy but none of these appear to have a function that allows you to specify the username and password you would like to connect as.  Any suggestions on how to do this type of copy via command line?
SOLUTION
Avatar of rokov
rokov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mihalakj
mihalakj

ASKER

i need to copy via unc path name and can't map the drive first due to a script i've cobbled together .  Looks like I may need to start over.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solutions were provided.
Suggest: PAQ + assign points
Do not see any rationale for deletion.
none of the provided solutions were applicable to the constraints of my script.  It was not possible to pass credentials during the copy command.  Its possible to pass them before the copy command, but the constraints of the script did not allow this as an option.  I ended up having to scrap the script and find another way.  Help was provided in good faith though, so I am not adverse to awarding points.  I'm a bit new at experts exchagne so hopefully I can do this correctly. Stand by