Friday, August 17, 2012

Restoring Windows shares after migrating data from one server to another

Situation:  An office used robocopy to copy files from a Windows 2003 file server to a Windows 2008 R2 server.  Permissions were copied but shares were not.

Follow the steps below to restore the file shares.  Note: the drive letters and paths must be the same on the two systems or this procedure will not work.

This procedure applies only to NetBIOS shares and not to Macintosh volumes.
  1.  On the SOURCE server that contains the shares that you want to transfer launch regedit
  2.  Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
  3.  Export the registry key by going to the File menu and clicking on Export
  4. Save the file to a location that is accessible from the new server
  5. On the TARGET server launch regedit
  6. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
  7. Import the saved registry key by going to the File menu and clicking on Import
  8. Enter the path to the saved registry key that you exported in step 3
  9. Restart the server
 Full details of this procedure can be found in this MS KB article.

No comments: