Jump to content

- - - - -

Recovering files with cmd shell

  • Please log in to reply
1 reply to this topic

#1 ljames

  • Members
  • 1 posts

Posted 28 May 2010 - 10:45 PM

Hi, everybody; I'm a newbie at this, so please bear with me. I am trying to recover some files from a "degraded raid 1 (mirror) volume" (both drives show as degraded on bootup) belonging to a friend who never made a backup. I have created a VistaPE boot disk using Winbuilder080. When I boot the system with VistaPE and open the cmd shell, I can bring up the directory of the c:\ drive and c:\users; I can also see the directory of a Seagate external drive that I am trying to recover the files to. When I use the copy command to copy the files in any one of the user folders, all I get is "access denied" for each of the files and nothing gets copied. Can anybody tell me what I'm doing wrong or what I need to do to recover these files? Thanks for any help you can give me.

#2 amalux


    Platinum Member

  • Tutorial Writer
  • 2813 posts
    United States

Posted 29 May 2010 - 06:48 AM

Hi ljames :thumbsup:


takeown /f <foldername> /r /d y

icacls <foldername> /grant administrators&#58;F /t

or run both from batch:

takeown /f %1 /r /d y

icacls %1 /grant administrators&#58;F /t

batch <directory>

Hope it helps :cheers:

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users