Tips - How to migrate file server share and permissions

If you are changing File server (from 2008 to 2012 ) and you want to preserve all permissions and mantain same shares you need to utilize this procedure (take care about other permissions/print server shares) too.
  1. Launch regedit
  2. Export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares registry key from the source server
  3. Disable SERVER service on the source server (to be sure no one is modifying data during migration)
  4. Run RoboCopy using /COPYALL key (or /SEC key at least)
    robocopy source destination /MIR /SEC /E
  5. Import registry file (exported in the first step) to the destination server
  6. Restart SERVER service on the destination server (required for imported registry file to take an effect)

Important: It would important to save shares register keys on destination file server in case of problems or incompatibility too, there could be, infact, old shares deletions problems

In case you are still working on windows 2003 to 2012 R2 file server migration procedure this procedure should be allways fine but I would suggest to search more internet articles, here they are some articles:

Migrating File Servers from Windows Server 2003 to Windows Server 2012 R2

Step-By-Step: Migrating a 2003 file server with Microsoft File Server Migration Toolkit

# /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
#      /B :: copy files in Backup mode.
# /E :: copy subdirectories, including Empty ones.
# /W:n :: Wait time between retries: default is 30 seconds.
# /IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.
# /NDL :: No Directory List - don't log directory names.
# /NP :: No Progress - don't display percentage copied.
# /XD dirs [dirs]... :: eXclude Directories matching given names/paths.

<---------------- -------------------------="" articles="" blog="" other="" related="">

more Robocopy parameters and Examples

Tips - How to migrate file server share and permissions

Server - Salvare i nomi e permessi di condivisioni di rete che utilizzano Netbios

Scritping - Use robocopy to replicate file to remote location