Robocopy ERROR 6000 (0x00001770) for encrypted files with /EFSRAW

Miguel Angel Vara Martinez 1 Reputation point
2021-06-09T01:59:21.613+00:00

My problem is that I want to create a backup of a folder with several files and I realized that some of them are encrypted by a user, so I decided to investigate and found that adding / EFSRAW could copy those encrypted files, but the problem that when I run it , It only copies two encrypted files and the others not showing me the following error:

103617-image.png

I have been trying in different ways so that it manages to copy those missing encrypted files but so far I have not been able, I really hope and you can help me :(

Attached code used

net use \RDP\IPC$ /user:********* *******
robocopy C:\TESLA \RDP\BACKUP\NAME_%date:~-4,4%-%date:~-7,2%-%date:~-10,2%-%time:~0,2%-%time:~3,2%-%time:~6,2% /COPYALL /B /EFSRAW /E /r:2 /w:2 /LOG:%userprofile%\Documents\Logs_Backup\log_%date:~-4,4%-%date:~-7,2%-%date:~-10,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%.txt /NDL /NFL
net use \RDP\IPC$ /d

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,691 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,897 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leila Kong 3,696 Reputation points
    2021-06-10T07:43:19.693+00:00

    Hello @Miguel Angel Vara Martinez ,

    Thanks for your query.

    Is it working if you encrypt the target folder first?
    https://social.technet.microsoft.com/Forums/en-US/bf21fd4b-4aff-4509-841e-2748e332e977/robocopy-efsraw-option-fails-with-quotthe-specified-file-could-not-be-encryptedquot?forum=winserverfiles

    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

    Best regards,
    Leila

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Leila Kong 3,696 Reputation points
    2021-06-17T10:20:45.26+00:00

    Hello @Miguel Angel Vara Martinez ,

    Just checking in to see if the information provided was helpful.
    Please post back at your convenience if we can assist further.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.