Advertisement
While moving your Windows shares from one computer to another might seem pointless for most people, system administrators see great value in doing it efficiently. It is particularly useful in situations where we have to move data from an old server to new one, and we want our users to keep on accessing their files through the same virtual locations.
Let’s say you’ve got a brand new quad-core server running in your server room and need to move files from your old Windows 2000 box to the new machine. First, be sure to create the same file system structure as on your other server (C, D, E, etc.). Then, just move (or restore) your files to the new server, making sure that files and directory permissions are transferred along with them.
If there was a directory named d:\users in the old system, the user directory must also be restored in the same drive on the new server.
Now that you’ve moved your files, start the registry editor and follow these simple steps:
(Warning: Serious problems might occur if you modify the registry incorrectly by using the registry editor or another method. These problems might require that you reinstall your operating system. Microsoft or I cannot guarantee that these problems can be solved. Modify the registry at your own risk.)
- Navigate to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Shares.
- Select the “shares” key and click files -> export. Save this file to the location of your choice.
- Do the same with the “security” sub key.
- Copy both files to the new machine.
- Log in into the new server and double click on the registry files you’ve just created (NOTE: You will lose all previously configured shares on the new system).
- Reboot the server, and voilà, the new shares should be there.
Now, the only thing that remains to be done is to modify your login script to point to the new server instead of the old one.
So, if your script contained something like:
NET USE M: \\oldserver\VOLUME1 /YES
Just change \\oldserver to \\newserver and your users won’t even notice their data moved.
Sounds like you've written this out of a recent past experience, no?
Yeah :) We recently migrated our win 2000 domain to a Win 2003 AD domain and moved files from an old file server to a new one. Everything went like a charm :)
Sounds like you’ve written this out of a recent past experience, no?
Yeah :) We recently migrated our win 2000 domain to a Win 2003 AD domain and moved files from an old file server to a new one. Everything went like a charm :)
Hey, nice to hear this. Days ago I read a tip on how to increase by 20% the internet connection speed, as it seems Microsoft has has 20% on reserve. Good post!
Hey, nice to hear this. Days ago I read a tip on how to increase by 20% the internet connection speed, as it seems Microsoft has has 20% on reserve. Good post!
ya well i personally do not understand this at all.
ya well i personally do not understand this at all.
What if you already have shares on the target system? I do not want to lose those!
zeddock
Did you find any way to keep the existing shares and merge them somehow?
rich
There is some commercial products available that are capable of doing this. We always use Sys-Manage Copyright2 to copy/move file shares around within our network.
Cheers / Russ
who is the dumbass that created the existing shares… Then just manually copy the keys over for each share. Or use the reg import (i think just running the Reg key does the same thing) it doesnt overwrite values unless they are the exact same values as what is already there. So as long as the same shares are not setup on the destination server, it should merge, not overwrite.
What if you already have shares on the target system? I do not want to lose those!
zeddock
5. Log in into the new server and double click on the registry files you’ve just created (NOTE: You will lose all previously configured shares on the new system).
5. Log in into the new server and double click on the registry files you’ve just created (NOTE: You will lose all previously configured shares on the new system).