Monday, January 28, 2013 7:57 PM
We have a file server running windows server 2003 that stores data that we want to sync with several laptop users. The users have a mapped network drive to this server where they place files that have been changed or modified. Then in order for all the laptop users to get the updated files, we run a roboy copy script that copies all the data from the server to their local C drive. This is so that the data is available when they are offline. Each of the users are administrators on the local machine, but standard users on active directory.
When i run the robocopy script on one of the laptops logged in as the user of that laptop, i get an error "A required privledge is not held by the client". One of our users noticed that this error is prevetning the copy, so the data on his local c drive is not up to date with the data on our server.
The user can created files, directories, ect on the server, and has the permission to do all of these changes, but for some reason Robocopy won't copy the files from the server to the laptop.
One other note, if I log in as myself, a netowkr admin, I can run the robocopy script just fine, with no errors.
Example of one of our lines in the robocopy batch file:
robocopy "\\server\service\office\Forms" "c:\Service Sync\office\Forms" /mir /copyall /e /zb /R:1 /W:1
Monday, January 28, 2013 8:34 PM
It would be useful to see the output from this command:
cacls "c:\Service Sync\office\Forms"
Monday, January 28, 2013 9:08 PMThe user that I am logged into has this permission: (I) (OI) (CI) (F)
Monday, January 28, 2013 9:21 PM
Sorry, I need to see the whole output, not just your selection. Right-click the console screen to mark the text with your mouse, then press Enter to copy.
What do you get when you type this command in a Console screen:
copy "%comspec%" c:\Service Sync\office\Forms
Monday, January 28, 2013 9:38 PM
I did the copy command you mention above, it told me 1 file was copied.
Here is the full output from the first command:
C:\Users\srasmussen>cacls "c:\Service Sync\office\Forms"
c:\Service Sync\office\Forms D****G\mikpad:(ID)F
Monday, January 28, 2013 9:47 PMI suspect that one of the files in the target folder is protected. Robocopy might try to delete it because you use the /MIR switch. Does the problem persist without the switch?
Monday, January 28, 2013 9:56 PM
i removed the MIR switch and the issue still persists.
Monday, January 28, 2013 10:37 PM
Let's find out where exactly the problem lies. Use the command below exactly as it is, then examine the log file in detail.
xcopy /y /c /e "\\server\service\office\Forms" "c:\Service Sync\office\Forms\" 1>c:\ServiceSync\copy.log 2>&1
Tuesday, January 29, 2013 8:36 PMI will try that, but we would like to use robocopy, not xcopy.
Tuesday, January 29, 2013 8:50 PMi removed the /copyall switch and changed the path to my server drives using the mapped newtork letter dirve instead of the server name and that solved the problem.
- Marked As Answer by Tyler Miller - Delkor Tuesday, January 29, 2013 8:50 PM
Wednesday, January 30, 2013 1:40 AMModerator