Navigation
Popular content
Active forum topics
|
How to synchronize two Windows computersThe problemA typical situation is that you have two computers which you use interchangingly. Most likely one is your desktop, the other your laptop computer. If you go out, you take your laptop computer along and use it, but back in your home or office you prefer to use the desktop. Nonetheless you want to have your data, like your email, on both computers. The first thought is to use the offline folder ability of Windows, but if you've ever tried that, you probably know that it is not a viable solution. It is simply too unreliable. One other possibility is a program named Replicator that can be found on http://michna.com/software.htm. However, the program has been unsupported for a while, due to low demand, so it is not a long-term solution. So I tried to use other available software for the purpose, and it turned out that it can be done. The solutionessentialsEssentially this is a copying job. Whenever you change from one computer to the other, you copy all relevant data that way. The computers need to be networked and need to have the folders shared that you want to have synchronized. You somehow have to tell the computers in which direction to copy. Any copying both ways would require a kind of folder and file bookkeeping that goes beyond what is stored in the file systems of the computers. (Replicator puts a separate database into each folder to facilitate that, but we don't want to go that way here.) So you need a good copy program. There are several. The best is Robocopy, a tool from the Windows 2000 or Windows XP Resource Kit. If you absolutely cannot get hold of it, you can buy XXCOPY, a shareware program, or try to make do with XCOPY that comes with Windows. However, this has some limitations. The rest of this article supposes Robocopy, running on Windows XP Professional. There is also an unsupported program from Microsoft named SyncToy 2.0 beta, a free download that helps you copy, move, rename, and delete files between folders and computers. This is still beta software, so be careful. Copying a user profileProblemsThere are a few severe problems with copying a user profile. They come about when you don't just want to copy the My Documents folder, which is easy and mostly problem-free, but instead want to go one level deeper and copy the entire profile. 1. The user registry hiveThe user registry hive is in the profile folder which also contains the My Documents folder. Its filename is ntuser.dat. The example below makes no attempt to prevent copying this hive, because it cannot be copied when the user is logged on to either of the two computers (because this file is open for writing as long as the user is logged on). There are a few related files as well, like ntuser.dat.log. If the two computers are clones of each other and the user has the same SID, then you can actually copy that file, but all user-related registry settings would go with it, such as, for example, the monitor screen resolution and a lot of software settings. If the two computers are not clones of each other, it may be wiser to add a file exception for ntuser.* (Warning: Test whether wildcard characters are properly processed by Robocopy. The documentation may be wrong at that point, for files, folders, or both.) 2. Machine dependent encryption keysFor a long time I copied the entire profile. But after upgrading to Windows XP and even before that, to some extent, I had severe problems because Microsoft stores machine-dependent encryption keys in the All Users profile and apparently some other sensitive files in the user profiles as well. Therefore I ended up with a general exception for the Application Data folder, which is unfortunate, because it would be nice to copy much of that across. It proved to be too risky though. My batch fileThe following batch file does the job on my computers running Windows XP Professional. There are some specialties that I describe here.
This is the batch file:
I'm sure all readers are grateful for a comment if you find any errors or omissions or if you have any proposals for improvement. |
User login
Donations If this web site has helped you, please help us too! Recent blog posts
Windows news ticker
Who's new
Who's online
There are currently 0 users and 3 guests online.
hits since 2007-11-01 |
6 hours 52 min ago
7 hours 2 min ago
14 hours 49 min ago
4 days 16 hours ago
4 days 17 hours ago
5 days 1 hour ago
5 days 22 hours ago
6 days 12 hours ago
6 days 13 hours ago
1 week 14 hours ago