Windows 8 and 8.1 Forums


Take Ownership of a File, Folder, Drive, or Registry Key in Windows 8

  1. #60


    Posts : 22,025
    64-bit Windows 10


    You're welcome. Glad to have helped.

      My System SpecsSystem Spec

  2. #61


    Posts : 4
    Windows 7


    Can ownership of registry key be taken from the command line?
      My System SpecsSystem Spec

  3. #62


    Posts : 22,025
    64-bit Windows 10


    Hello svnpenn, and welcome to Eight Forums.

    You can, but it's involved to do so. The Microsoft KB articles below can help show you more on this.

    How to: Use a Script to Change Registry Permissions from the Command Line

    How to change registry values or permissions from a command line or a script

    Hope this helps,
    Shawn
      My System SpecsSystem Spec

  4. #63


    Mumbai INDIA
    Posts : 2
    Windows 8 Home


    Excellent...Brink, you have made my day....cheers
      My System SpecsSystem Spec

  5. #64


    Posts : 1
    win 8.1


    Fantastic !
      My System SpecsSystem Spec

  6. #65


    Arnhem, The Netherlands
    Posts : 1,412
    Windows 8.1 Pro x64 Media Center Edition


    Great tutorial Brink. You've just saved my life there after I made a stupid stupid stupid mistake last night .

    Greetz,

    Rover
      My System SpecsSystem Spec

  7. #66


    Posts : 3
    Windows 8.1 Pro X64


    Hi Brink!
    This is a great guide, and helped me gain access to a folder, but I am still unable to access the files which are inside a subfolder, which itself is in the main folder, for which i ran the command.
    Basically what I did was: Right click a folder named " abc " > Properties > Security > Click the edit button > Deny all permissions to "Users" group (what a noob mistake) And now even administrator cannot access that folder with the message 'You currently don't have permission to access this folder'

    So, after reading this guide, I ran the following command: takeown /F "full path of folder or drive" /R /D Y ​(with the correct path) After using this command, I am able to access the folder and even subfolders, but not able to open any of the files inside both, the folder and subfolders.

    What can I do, to take ownership of Everything inside a folder? All its subfolders, files, the folders and files inside the subfolders, everthing?

    Hope I did not mess up with my question
      My System SpecsSystem Spec

  8. #67


    Posts : 22,025
    64-bit Windows 10


    Hello Blueman, and welcome to Eight Forums.

    That's correct. You would need to take ownership and set permissions for the parent folder, and check the Replace owner of subcontainers and objects box to apply to all subfolders and files using step 11 in Option Four.

    Hope this helps,
    Shawn
      My System SpecsSystem Spec

  9. #68


    Posts : 3
    Windows 8.1 Pro X64


    Thanks for the reply!
    I can't do that, as when i try to do that, it says that I do not have the permissions to do that(replace owner of subcontainer and objects)
    The above is not possible because I have denied EVERY permission to every user.
    But, after whole day searching for a solution to this, I finally found the answer.
    Here is what I just found on the internet
    To fix really broken permissions, the best is to run these two commands one after the other:
    takeown /f "C:\path\to\folder" /r
    icacls "C:\path\to\folder" /reset /T
    The first one will give you ownership of all the files, however that might not be enough, for example if all the files have the read/write/exec permissions set to "deny". You own the files but still cannot do anything with them.
    In that case, run the second command, which will fix the broken permissions.
    But anyways, ultra thanks for your help. I am amazed by your helpful nature
      My System SpecsSystem Spec

  10. #69


    Posts : 22,025
    64-bit Windows 10


    After taking ownership, you would indeed need to set permissions to "Allow" you "Full control" first, then check the box to apply to all subfolders and files.

    It's not common for "Deny" to be checked unless done so by mistake.

    I'm glad to hear that you got it sorted though. Thank you for posting back with your results.
      My System SpecsSystem Spec

Page 7 of 9 FirstFirst ... 56789 LastLast
Take Ownership of a File, Folder, Drive, or Registry Key in Windows 8

Similar Threads
Thread Forum
Ownership of Registry Keys?
I have come across an issues with potential problems with ownership of registry keys on my machine. Up until now, I was not aware that registry keys had owners, like directories. Why is this? Is there any link between the ownership of directories and registry keys. I haven't deliberately...
General Support
Can't save file to C:\ despite changing ownership & access
So sick of the patronisation of recent Windows releases. I am currently on 8.1. I can't figure out what else I have to do, to save a config file to the root of C. It's an old application, and that's where the config needs to go. I am worried that the medicine is worse than the illness in this...
General Support
Take ownership of file
I installed windows 8.1. I wanted to deleted the Windows.old but a pop-up told me that I needed permission. Isn't there a way to take ownership of a file?
General Support
Take ownership (folder) not affecting submenus..
I'd like to have it affect all remaining submenus + files like in win7
General Support
Can't change drive permissions or ownership
Hello everyone, I recently installed Windows 8 Pro onto an SSD. I have another 500gb HDD plugged in to store programs, games etc. However, I cannot do anything with the drive. I add folders etc. I have tried to change permissions, add permissions and change ownership but I get an error trying to...
Drivers & Hardware
Unable to delete folder - Permissions & ownership issue
Hi All, Have a problem that sounds super simple, but, for some reason isn't... I can't delete a folder! There is a folder left over from an uninstalled product called "Symantec". When I attempt to delete this, I get the message "You require permission from SYSTEM to make changes to this...
System Security
Unable To Take Ownership Of A System 32 File
Hi guys.. I'm trying to modifying a system 32 file i.e. twinui.dll.mui in Windows 8 CP. I already taken the ownership of the file using Brink's tutorial. But when I edited the file with Resource Hacker and after tweaking and compiling script, I'm unable to save this file. Here is what I'm...
General Support
Eight Forums Android App Eight Forums IOS App Follow us on Facebook