Is there a way to extract files from the c:\windows\csc folder in Windows 7 professional?
3 Answers
You can download the CSCCMD tool v1.1 from Microsoft Support (or try finding it on the Internet may be easier), and then follow the following support document from Microsoft using the /Extract switch (The syntax is near the bottom).
for example: csccmd /EXTRACT /RECURSE /TARGET:c:\csc-files
Use this command to grant full access
cd %systemroot%
takeown /f csc /r /a /d y
icacls csc /grant Everyone:(F) /t /l /q
then reboot.
vssadmin List Shadows
This will show you a list of your shadow copies (the shadow of the CSC folder will not be locked). Look for and copy the highest numbered original address. Secondly we make a link to the shadow copy:
mklink /D C:\LatestShadow \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy417\
The rightmost part of that should be the original address you copied before
Next use robocopy to get all the files out of the cache
mkdir C:\CSC_copy
robocopy C:\LatestShadow\Windows\CSC C:\CSC_copy /E /zb /copyall
then took ownership of the files in the C:\CSC_Copy
- 19,304
- 21
Working Solution
On the command line:
vssadmin List Shadows
This will show you a list of your shadow copies (the shadow of the CSC folder will not be locked). Look for and copy the highest numbered original address.
Secondly we make a link to the shadow copy:
mklink /D C:\LatestShadow \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy417\
The rightmost part of that should be the original address you copied before
Next use robocopy to get all the files out of the cache
mkdir C:\CSC_copy
robocopy C:\LatestShadow\Windows\CSC C:\CSC_copy /E /COPY:DT
You should end up with a copy of all the cache files in C:\CSC_Copy.
- 11