Migrate File Shares.


The easiest way to migrate File Shares is like this:

You need registry key, where windows stores the NTFS permission’s with the file but the share information along with share permissions and the files whit all ACL´s.

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows.

1. Use Robocopy to copy data from one server to the destination server. For that download ROBOCOPY from the Windows Server 2003 Resource Kit Tools, and create a MAP NETWORK DRIVE from the destination server.

ROBOCOPY <Original Drive> <Destination Drive> *.* /E  /COPYALL /XF pagefile.sys /XD “System Volume Information” /V  /TS  /FP  /ETA  /TEE  /LOG:<Path to create the log>\<log name>.TXT 

2. After the copy, open the regedit.exe (in original server) and export the following Registry Key as original_Shares.reg:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares.

3. In the destination create a backup of your Registry Key as Backup_Shares.reg:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares.

4. In the destination Server import the Original_Shares.reg

5. Restart the server service (LanmanServer).

Done.

 
You can check also the Microsoft Web Site – How to Restore Share Definitions To Another Server.
http://support.microsoft.com/kb/141589/en-us.

Note: If you migrate Windows 2003 to Windows 2008, use the ROBOCOPY from the Windows Server 2003 Resource Kit Tools, don´t use the built in in Windows 2008. The File built in , have a bug and don´t copy correctly ACL´s.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s