How to use robocopy to copy directories on different domainshttp://stackoverflow.com/questions/10346891/how-to-use-robocopy-to-copy-directories-on-different-domainsСуть использования Robocopy для копирования между разными доменами - создаем сначала сетевое подключение с учетной записью, имеющей права в домене, к которому обращаемся. А затем используем стандартные параметры Robocopy:
net use \\server1\g$ /user:domain1\user1 *
net use \\server2\g$ /user:domain2\user2 *
robocopy \\server1\G$\testdir\%3 \\server2\g$\uploads
Notes:
•This is using 'deviceless' connections which will not be recreated at start up (and won't appear with a drive letter in windows explorer).
•The asterisk at the end of the net use command means prompt for password, you could hard code the password in there (or get it as a parameter to the script).
•Might be worth reading up on net use to make sure it does what you need.
You can probably also remove the network connection to the servers by using this (I haven't tried this with a deviceless connection):
net use \\server1\g$ /delete
net use \\server2\g$ /delete
Графический интерфейс Robocopyhttps://technet.microsoft.com/ru-ru/magazine/2006.11.utilityspotlight.aspx