I have tried command prompt elevation, all possible switches with the xcopy command and had zero luck in copying the encrypted files (these files are highlighted in green )
After some googling, i was able to come up with a solution...the answer is robocopy and it works like a charm . This took a day's R&D
The switch that does this job is /EFSRAW . It copies all encrypted files in EFS RAW mode.
Your command would be something like
robocopy source destination /COPY:DATS /MIR /EFSRAW /R:2 /W:0 /E /ETA
Note - Robocopy is not an inbuilt feature in 2003 servers. It has to be installed separately. Also certain ESI files and certificates have to be imported to get the /EFSRAW switch to work in 2003 servers. This is not required on 2008, Vista and w7 servers.
Your question shows the second parameter to
xcopy
as"
(space)
H
:
\
"
. If that’s what you’re doing, try eliminating the space between the quote and theH
. ... And, if you don't have any spaces in that directory pathname, you don't need the quotes. – Scott – 2013-06-11T00:24:00.343