Windows 10: Change Owner of File, Folder, Drive, or Registry Key in Windows 10

Discus and support Change Owner of File, Folder, Drive, or Registry Key in Windows 10 in Windows 10 Tutorials to solve the problem; Hello Balubeto, *Smile You could use the command from step 4 in OPTION THREE to change the owner of the directory and contents.... Discussion in 'Windows 10 Tutorials' started by Neophile, Dec 25, 2015.

  1. Brink
    Brink New Member

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    Brink, Jan 7, 2016
    #16
  2. balubeto Win User

    I tried this command sequence

    Code: icacls "<Apply_Directory_Path>" /grant "Administrators":F /T /C icacls "<Apply_Directory_Path>" /setowner "Administrators" /T /C pushd "<Apply_Directory_Path>" && ( rd /S /Q "<Apply_Directory_Path>" 2>nul & popd )[/quote] but it does not work because the first command can not access some directories or files since this command does not have access to these directories/files or it does not find them. Why?

    Thanks

    Bye
     
    balubeto, Jan 7, 2016
    #17
  3. Brink
    Brink New Member
    Brink, Jan 7, 2016
    #18
  4. balubeto Win User

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    Excuse but, from the Command Prompt, it is possible to take ownership of these directories and files gaining full control over them? If so, how do I do this?

    Thanks

    Bye
     
    balubeto, Jan 8, 2016
    #19
  5. balubeto Win User
    I also noticed that, in this directory structure, there are also some symbolic links and not.

    Thanks

    Bye
     
    balubeto, Jan 8, 2016
    #20
  6. Brink
    Brink New Member
    The commands you already tried were for changing the owner and permissions to take ownership. You may have to delete it and start over instead. *Sad
     
    Brink, Jan 8, 2016
    #21
  7. balubeto Win User
    With the command

    Code: pushd "<Apply_Directory_Path>" && (rd /s /q "<Apply_Directory_Path>" 2>nul & popd)[/quote] nothing is deleted. Why?

    Thanks

    Bye
     
    balubeto, Jan 8, 2016
    #22
  8. Brink
    Brink New Member

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    What is the actual "<Apply_Directory_Path>"?
     
    Brink, Jan 8, 2016
    #23
  9. balubeto Win User
    This directory is that of the post 13.

    Thanks

    Bye
     
    balubeto, Jan 9, 2016
    #24
  10. balubeto Win User
    I tried these commands

    Code: takeown /F "<Apply_Directory_Path>\*" /R /A /D Y icacls "<Apply_Directory_Path>\*.*" /T /grant administrators:F pushd "<Apply_Directory_Path>" && ( rd /S /Q "<Apply_Directory_Path>\" 2>nul & popd )[/quote] but some subdirectories with their files are not deleted. Why?

    Thanks

    Bye
     
    balubeto, Jan 9, 2016
    #25
  11. Brink
    Brink New Member
    You may be able to delete it with the free Unlocker instead.
     
    Brink, Jan 9, 2016
    #26
  12. balubeto Win User
    I have a subdirectory structure that I can not see its owner, and when I try to open it, File Explorer request the sysadmin authorization although I am logged on with an Administrators account. Why?

    Using the Command Prompt, how do I become owner of this subdirectory structure with complete control over it so that I can also delete it?

    Thanks

    Bye
     
    balubeto, Jan 13, 2016
    #27
  13. Brink
    Brink New Member

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10

    Did you see if Unlocker was able to delete it?
     
    Brink, Jan 13, 2016
    #28
  14. balubeto Win User
    I think I found the best solution to remove a directory structure which also contains symbolic links and with ACLs managed by TrustedInstaller or Authenticated Users or System users:

    Code: takeown /F "<Directory_path>" /A /R /D Y /SKIPSL >nul 2>&1 icacls "<Directory_path>" /reset icacls "<Directory_path>" /grant:r AdministratorsChange Owner of File, Folder, Drive, or Registry Key in Windows 10 :(OI)(CI)F /inheritance:e /Q /C /T /L >nul 2>&1 pushd "<Directory_path>" && ( rd /S /Q "<Directory_path>" 2>nul & popd )[/quote] Many thanks to all

    Bye
     
    balubeto, Jan 25, 2016
    #29
  15. Hey Brink,

    First time forum user here for all the wrong reasons. I've been trying to get some of my companies alpha software installed on a few work machines and I believe the folder ownership was to blame for my problems. I managed to take ownership of the C: drive on both of my machines (exactly what your post above warns not to do). Upon rebooting them, I'm stuck at the blue windows ten startup screen with the white spinner.

    Am I SOL? Looking for anything I can do to revert the changes I made. At worst, I hope to be able to grab files off of the drives by hooking them up to another machine in an external caddy. At best, I can recover the machines as they were a few hours ago.

    Any help would be greatly appreciated!

    Thanks,
    James
     
    slimjim8201, Feb 23, 2016
    #30
Thema:

Change Owner of File, Folder, Drive, or Registry Key in Windows 10

Loading...
  1. Change Owner of File, Folder, Drive, or Registry Key in Windows 10 - Similar Threads - Change Owner File

  2. Cannot change owner of folder

    in Windows 10 Software and Apps
    Cannot change owner of folder: Hi, when I try to enter the Windows Defender Scan folder it says I have been denied access to the folder despite being an administrator. When I try to change who the owner of the folder is in the security tab, It doesn't even give me the option to click on it to try and...
  3. Cannot change owner of folder

    in Windows 10 Gaming
    Cannot change owner of folder: Hi, when I try to enter the Windows Defender Scan folder it says I have been denied access to the folder despite being an administrator. When I try to change who the owner of the folder is in the security tab, It doesn't even give me the option to click on it to try and...
  4. Changing "owner" of Windows 10

    in Windows 10 Gaming
    Changing "owner" of Windows 10: I am gifting an older laptop to a relative. I have reformatted the hard drive and set up Windows 10 with my own MS account so that I could install a newly-purchased copy of Office, and some Norton security software as part of the gift.I need to learn how to instruct the...
  5. Changing "owner" of Windows 10

    in Windows 10 Software and Apps
    Changing "owner" of Windows 10: I am gifting an older laptop to a relative. I have reformatted the hard drive and set up Windows 10 with my own MS account so that I could install a newly-purchased copy of Office, and some Norton security software as part of the gift.I need to learn how to instruct the...
  6. Changing "owner" of Windows 10

    in Windows 10 Updates and Activation
    Changing "owner" of Windows 10: I am gifting an older laptop to a relative. I have reformatted the hard drive and set up Windows 10 with my own MS account so that I could install a newly-purchased copy of Office, and some Norton security software as part of the gift.I need to learn how to instruct the...
  7. File owner changes

    in Windows 10 Support
    File owner changes: I backup my files to a USB on another PC and the owner changes to a long string (S-1-5-21-2070691468-2192114673-407588093-1001) - what's going on??? 175144
  8. windows defender registry key change

    in AntiVirus, Firewalls and System Security
    windows defender registry key change: hi, my windows denfender services become disable , not sure why. I already take ownership of registry key of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend then change start key from 4 to 2, it still unable to change the key? any idea?...
  9. Administrator doesn't have access to change owner in registry

    in AntiVirus, Firewalls and System Security
    Administrator doesn't have access to change owner in registry: Hello, the question is according to Windows 10 x64. I was trying to uninstall Symantec Endpoint Protection and uninstaller shows an error - access denied to registry. I was trying to change permission manually in registry with Admin account, but no luck. Still error -...
  10. Administrator can change owner of registry key but not permissions...

    in User Accounts and Family Safety
    Administrator can change owner of registry key but not permissions...: I'm running 64-bit Windows Pro on an Asus P5Q-EM MB with an Intel E8600 processor with 8 GB of PC2-6400 Ram. I've had a couple of unexpected shutdowns and restarts lately. I've got several different error types in my event log. The only one showing to be "critical" is the...