Robocopy cannot find specific directory
I am migrating our file server from 2008 to 2012R2. Currently i am trying to copy all folders and files to our new server but the command isnt working correctly.
Here is what i am using:
robocopy G: D:\ /e /zb /COPY:DATSOU /r:3 /w:1 /v/ /eta /log+:C:\robocopy\copyreport.txt /tee /sec /tbd
But for some reason its NOT working.. it cant find the specific path. I checked and double checked and im 100% sure the paths are working and are correct.. i had an error before with the log file but resolved that.
Anyone knows whats wrong?
Actual error: 2015/04/22 11:24:56 ERROR 3 (0X00000003) Accessing Source Directory G:\ The system cannot find the path specified.
I had the same problem with a mapped drive. I found the answer on the technet forums.
This is caused by running with highest privileges(on the local system). Please run as the user not as administrator. Normally the administrator only has local access, no access to the server.
This problem is caused by running the command as administrator (on the old server). Running the command as a non-administrator user will resolve the problem.
changing the registry key for short files names as part of the cleanup suggested in the Best Practice Analyzer. The key it told me to modify was this one.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
It was defaulted to 2 and I had changed it to 1 as per the BPA. I went back and changed it back to 2 and reran the robocopy script without errors.
Just wanted to let people know what worked for me:
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v NtfsDisable8dot3NameCreation ^
/t REG_DWORD /d 2 /f
My windows 10 1909 (18363.778) was defaulted 0. I just set 2 and now it works like a charm.
Thank you