Link to home
Start Free TrialLog in
Avatar of robbie_woodley
robbie_woodley

asked on

Using Robocopy across domain

I'm attempting to use a scheduled task to robocopy files from a folder on a server on one domain to a folder on a server on an untrusted domain. I choose to run the task using my trusted domain credentials, but when the task runs I get an error letting me know there is a logo failure: unknown user name or bad password.

I know this is because I have different credentials on the untrusted domain. Is there a way to remedy this? I have read something about creating a batch file but I do not know how to incorporate that in my scheduled task. Thanks!
Avatar of Jay Dubya
Jay Dubya
Flag of United States of America image

How about Using the net command to map network drive and then use robocopy?

Maybe something like this?

net use * //serv1/c$ <password> /user:<username>
copy test.txt //serv1/c$/tmp/*.*
Avatar of robbie_woodley
robbie_woodley

ASKER

I guess I'm not familiar enough with this to be able to use it. I'm a bit lost at this poing...tried to run the net command but had no luck.
Interesting scenario. Look at Robocopy's -b option I think. Where -b is for backup mode.
But you still have to be able to reach a share. Share permissions everyone and locked down NTFS perms, might work.
Brain is tired - its Friday... heading to bed.
Well for the you will need to give something for the scheduled task to run, in this case a script that uses psexec is recommended and at this point you will need to figure out if you want to use VB script or just a simple batch file to kick off the robo copy job. It's tricky when you need move stuff across non-trusted domains. Check out psexec it may be the best bet to kick off the robo copy job as it has a method of connecting to remote machines via IP.

psexec - http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

Helpful info? - http://serverfault.com/questions/46729/where-can-i-find-ready-to-use-windows-scripts-that-used-robocopy

ASKER CERTIFIED SOLUTION
Avatar of ZabagaR
ZabagaR
Flag of United States of America image

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