migration from sbs 2011 to ms 2012 essentials r2 - robocopy errorr

I am migrating from sbs 2011 to ms2012 essentials r2,

Using robocopy I get the error:
error32
cannot access the file because it is being used by another process.

I would guess this is on the source side (sbs 2011)
robocopy \\sourceserver\foldername  "c:\destinationfolder" /e /b /copyall

How can I locate the process?
The client workstations are still mapped to the source server(is this a problem)
 Can I use process explorer to find the dll or other stopping the process?

Should I be using serverfolders :

c:\serverfolder\destinationfolder



This is my first 2012 server migration.

Thanks is advance
TechIsaacIT Contracting Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITCommented:
You need to close the open file handles.
Either ask users to logoff or force the handles closed. 2012 has built-in way to do that. I'm not at a server to confirm. You can also use Microsoft's HANDLE tool https://technet.microsoft.com/en-us/sysinternals/bb896655.aspx

Here's a command line way:
for /f "skip=4 tokens=1" %%a in ('net files') do net files %%a /close

Open in new window


WARNING: Forcing files closed can corrupt the file.
0
LeoCommented:
Are you copying the folder using this format for robocopy?


To copy users’ shared folders


1.On the Destination Server, click Start, right-click Command Prompt, and then click Run as administrator.


2.On the User Account Control page, click Continue.


3.At the command prompt, type the following:

Robocopy \\ <SourceServerName> \Users \\ <DestinationServerName> \UserShares /E /COPY:DATSOU /R:10 /LOG:C:\Copyresults.txt

4.View C:\Copyresults.txt to verify that the files were copied correctly. You can also compare the number and size of the files that were in the users’ shared folders on the Source Server with the number and size of the files that are now on the Destination Server.

To copy folders to the Destination Server

1.On the Destination Server, click Start, right-click Command Prompt, and then click Run as administrator.


2.On the User Account Control page, click Continue.


3.At the command prompt, type the following:

robocopy \\<SourceServerName>\<ShareName>\<disk>:\<FolderName> /E /R:10 /COPY:DATSOU /LOG:C:\Copyresults.txt, where <disk>:\<FolderName> is the physical location that you want to copy to your Destination Server.

4.Repeat step 3 for additional folders that you want to copy to the Destination

Create shared folders and restore permissions on the Destination Server

To save only the existing shared folder names and their permissions


1.On the Source Server that contains the shared folder names and permissions that you want to save, start Regedit


2.From the HKEY_LOCAL_MACHINE sub-tree, go to the following key:

SYSTEM\CurrentControlSet\Services\LanmanServer\Shares


3.Save or export the registry key.


4.Type the file name old_registry, and then save on the Source Server.


5.Leave values for shared folders that you want to migrate and copy to the Destination Server. Delete the others.

6.Repeat step 5 for

SYSTEM\CurrentControlSet\Services\LanmanServer\Shares\Security

7.For the shared folders that you copied to a different location on the Destination Server, double-click the value and change the path to the current storage location on the Destination Server.

8.Save or export the edited registry key.

9.Type the file name share_registry, and then save the file.

10.Double-click old_registry to restore to the original registry on the Source Server, and then click Run. Click OK twice.

11.Copy the share_registry files to the Destination Server.

12.On the Destination Server, double-click share_registry, and then click Run. Click OK twice.

Note:This step overrides the shared folders that already exist on the Windows computer with the names and permissions that exist in the file you are restoring

13.Restart the Server service, Netlogon service, and Microsoft Exchange Information Store services.

14.In the Windows SBS 2011 Standard Console, click Shared Folders, and verify the shared folders and permissions. Only permissions of domain users are migrated.

If you need complete step by step guide for migration, refer to this......

http://blog.mpecsinc.ca/2011/05/sbs-2003-to-sbs-2011-migration-guide.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.