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

Page 3 of 9 FirstFirst 12345 ... LastLast

  1. Posts : 305
    Windows 10
       #20

    Brink said:
    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.
    With the command

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

    Thanks

    Bye
      My Computer

  2. Brink's Avatar
    Posts : 56,987
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #21

    What is the actual "<Apply_Directory_Path>"?
      My Computers


  3. Posts : 305
    Windows 10
       #22

    Brink said:
    What is the actual "<Apply_Directory_Path>"?
    This directory is that of the post 13.

    Thanks

    Bye
      My Computer


  4. Posts : 305
    Windows 10
       #23

    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 )
    but some subdirectories with their files are not deleted. Why?

    Thanks

    Bye
      My Computer

  5. Brink's Avatar
    Posts : 56,987
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #24

    You may be able to delete it with the free Unlocker instead.
      My Computers


  6. Posts : 305
    Windows 10
       #25

    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
      My Computer

  7. Brink's Avatar
    Posts : 56,987
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #26

    Did you see if Unlocker was able to delete it?
      My Computers


  8. Posts : 305
    Windows 10
       #27

    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 Administrators:(OI)(CI)F /inheritance:e /Q /C /T /L >nul 2>&1
    pushd "<Directory_path>" && ( rd /S /Q "<Directory_path>" 2>nul & popd )
    Many thanks to all

    Bye
    Last edited by balubeto; 27 Jan 2016 at 02:41.
      My Computer


  9. Posts : 2
    Windows 10
       #28

    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
      My Computer

  10. Brink's Avatar
    Posts : 56,987
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #29

    Hello James, and welcome to Ten Forums.

    Yeah, you never want to take ownership of the C: drive as per the red warning at the top of the tutorial. It never ends well.

    You could see if you may be able to do a system restore at boot using a restore point dated before this happened. You may need to boot from USB installation media since Windows is stuck.

    System Restore Windows 10
      My Computers


 
Page 3 of 9 FirstFirst 12345 ... LastLast

Tutorial Categories

Change Owner of File, Folder, Drive, or Registry Key in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:04.
Find Us




Windows 10 Forums