bga68comp: (Default)
How to use robocopy to copy directories on different domains

http://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

Графический интерфейс Robocopy

https://technet.microsoft.com/ru-ru/magazine/2006.11.utilityspotlight.aspx



 
 

Profile

bga68comp: (Default)
bga68comp

December 2025

S M T W T F S
  12 3 456
7891011 1213
14151617181920
21222324252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated 2026-01-08 10:25
Powered by Dreamwidth Studios