HOW TO: Move Windows shares from one computer to another

June 27, 2007 by Geeks are Sexy | 6 comments

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.)

  1. Navigate to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Shares.
  2. Select the “shares” key and click files -> export. Save this file to the location of your choice.
  3. Do the same with the “security” sub key.
  4. Copy both files to the new machine.
  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).
  6. 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.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • Reddit
  • Facebook
  • MySpace
  • FriendFeed
  • del.icio.us
  • Google Bookmarks
Related Posts:
  1. HOW TO: Get back in Windows after losing your password
  2. HOW TO: Delete an Undeletable or Locked File
  3. Set up hot keys without any added software on Windows XP or better.
  4. Windows Vista performance updates released
Cool posts on other blogs:
Did you enjoy this post? If so, subscribe to the geeksaresexy RSS feed.

RSS feed | Trackback URI

6 Comments »

Comment by Jonathan Franzone
2007-06-27 10:41:24

Sounds like you’ve written this out of a recent past experience, no?

Comment by Kiltak
2007-06-27 10:58:53

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 :)

 
 
Comment by Daniel
2007-07-02 07:32:28

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!

 
Comment by Brooke
2007-07-30 18:37:34

ya well i personally do not understand this at all.

 
Comment by zeddock
2008-01-04 08:43:15

What if you already have shares on the target system? I do not want to lose those!

zeddock

 
Comment by Anthony
2008-01-11 11:57:20

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).

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post


| [Geeks are Sexy] Privacy Policy | Legal Disclaimer |