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

http://blogs.technet.com/b/josebda/archive/2014/11/05/migrating-file-server-from-windows-server-2003-to-windows-server-2012-r2.aspx

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

http://blogs.technet.com/b/canitpro/archive/2014/11/06/step-by-step-migrating-a-2003-file-server-with-microsoft-file-server-migration-toolkit.aspx

# /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

http://www.devadmin.it/2016/02/27/copia-di-una-cartella-mantenendo-i-permessi-ntfs/


Tips - How to migrate file server share and permissions


http://www.alessandromazzanti.com/2015/11/tips-how-to-migrate-file-server-share.html


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


http://www.alessandromazzanti.com/2011/03/salvare-i-nomi-e-permessi-di.html


Scritping - Use robocopy to replicate file to remote location


http://www.alessandromazzanti.com/2014/01/scritping-use-robocopy-to-replicate.html