Moving a file share to a new server.

A simple way to move file shares from one server to another with the ability to copy NTFS permissions. Run the script as a domain admin and make sure the owner of all the files is the domain admin.

Start the script with a scheduled task during the night and change your login script for a seamless move.

–>Download and install Robocopy if needed. (It is part of the Windows Server Resource Kit Tool and or it is a standard feature in Server 2008)
For more info on Robocopy check out: http://en.wikipedia.org/wiki/Robocopy

Code:

robocopy \\oldserver\share\ \\newserver\share /s /e /copy:DATSOU