Reset file and folder permissions of external hard drive data to default in Windows 7

You can do this with the GUI -- take ownership and then reset everything --

Right click root folder > properties > security > advanced > owner (tab) > edit > choose your account from the list (or select from the Other Users or Groups button) and select "Replace Owner on subcontainers and objects"

Take ownership

There is also a "takeown" command, i.e. if the files are on a drive that you see as E: --

TAKEOWN /F E:\ /R /D Y

Once you have taken ownership, then you have to set the permissions; for this, you use ICACLS:

ICACLS "e:\" /reset /T

Alternative ways of changing the permissions with ICACLS can be found with "ICACLS /?" as you can explicitly add your permissions, replace, etc.

There is a nice tutorial with screenshots (including the one here) at http://www.askvg.com/guide-how-to-take-ownership-permission-of-a-file-or-folder-manually-in-windows/ although it shows you how to do the whole process from the GUI.


TAKEOWN /F E:\ /R /D Y

The command works fine.

ICACLS "E:\" /reset /T

The command did not work, but had to add an asterix (*) to it. As an example:

ICACLS "E:\*" /reset /T

For those who bumped in to the same problem as me.


Debra gave the suggestion which worked very well for me... Many many thanks Debra! I wish I had the repo to vote up for your answer :)

Below is what my side of the story was and what I did to solve it..

My problem goes like this - I had Windows 7 Ultimate x86 installed on my dell studio earlier which developed some bad sectors over the years, and suddently the system started failing abruptly hence I replaced the hard disk with a new 500GB one and installed the same Windows 7 Ultimate x86 on the new one.

I did not take backup of my personal user files which I kept inside old documents or desktop as I thought using the Administrator account it could be done from the new HDD as we used to do in Windows XP.Well thats where I went wrong!!

WIndows 7 has some crancked up security inbuilt, which avoids any other guy to step inside your personal files just like that. Basically I couldn't access my old files when I connected the previous HDD. When I tried going into Users\Administrator or Users\MYUSER directory it just said - "Access is Denied" or went on showing the progress circle indicator for infitely long time and never actually opening it.

So I followed this amazing tutorial about how to change ownership and permissions in Windows 7 using GUI - http://www.blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-windows-7.htm

But it didn't work out for me as my permissions in old Windows also were pretty wasted. So I came to This article and it worked!

Following is what I did in (order of appearance) -

  1. Started my windows PC with the target hard disk connected that has the folder I want ownership to.
  2. Went to Control Panel.
  3. Opened Administrative Tools (it's under System & Security when viewing categories)
  4. Then clicked Computer Management (2nd from the top).
  5. Then open Local Users and Groups
  6. Inside that you will see two sub categorizations - Users, Groups. Open Users
  7. That should display 3+ Users. Top one will be Administrator. Right click it and select Properties
  8. Uncheck the "Account is Disabled" setting and then select ok.
  9. Then close all windows, and logoff / restart your windows.
  10. This time you should see a new user as the first one - Administrator, click it to login as Administrator to the computer.
  11. Now the real game begins.
  12. Click Start button and type cmd in the search box, when appeared right-click cmd and Run as Administrator (Elevated Command Prompt is what will get us there)
  13. Now go to My Computer and check the drive letter which is available as a mounted active partition in your windows, remember it's drive letter. e.g. 'F' (This is the partition which contains those Users directories which you want access to).
  14. Now go to command prompt we opened in step 11 and type that drive letter e.g. F: and press enter
  15. Then change directory to the parent directory of the folder you want full ownership to. e.g. If I want access to all files and directories inside "F:\Users\Administrator\" I would cd to F:\Users
  16. Now as mentioned by Debra run following commands -

F:\Users>TAKEOWN /F F:\Users\Administrator\ /R /D Y (all dirs under will be owned)

F:\Users>TAKEOWN /F F:\Users\Administrator* /R /D Y (any left over files will be owned too)

F:\Users>ICACLS "F:\Users\Administrator*" /reset /T

  1. One both the commands ran, I went to My Computer, opened the F: drive and successfully was able to browse inside the Users\Administrator directory and view, copy, cut or delete them to my destination.

Hope it saves your weekend!! NRJ