Page 3 of 7 FirstFirst 12345 ... LastLast
  1.    09 Jan 2016 #20
    Join Date : Jun 2015
    Posts : 278
    Windows 10

    Quote Originally Posted by Brink View Post
    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 ComputerSystem Spec
  2.    09 Jan 2016 #21
    Join Date : Oct 2013
    Posts : 25,662
    64-bit Windows 10 Pro build 17046
    Thread Starter

    What is the actual "<Apply_Directory_Path>"?
      My ComputersSystem Spec
  3.    10 Jan 2016 #22
    Join Date : Jun 2015
    Posts : 278
    Windows 10

    Quote Originally Posted by Brink View Post
    What is the actual "<Apply_Directory_Path>"?
    This directory is that of the post 13.

    Thanks

    Bye
      My ComputerSystem Spec
  4.    10 Jan 2016 #23
    Join Date : Jun 2015
    Posts : 278
    Windows 10

    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 ComputerSystem Spec
  5.    10 Jan 2016 #24
    Join Date : Oct 2013
    Posts : 25,662
    64-bit Windows 10 Pro build 17046
    Thread Starter

    You may be able to delete it with the free Unlocker instead.
      My ComputersSystem Spec
  6.    14 Jan 2016 #25
    Join Date : Jun 2015
    Posts : 278
    Windows 10

    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 ComputerSystem Spec
  7.    14 Jan 2016 #26
    Join Date : Oct 2013
    Posts : 25,662
    64-bit Windows 10 Pro build 17046
    Thread Starter

    Did you see if Unlocker was able to delete it?
      My ComputersSystem Spec
  8.    26 Jan 2016 #27
    Join Date : Jun 2015
    Posts : 278
    Windows 10

    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 03:41.
      My ComputerSystem Spec
  9.    24 Feb 2016 #28
    Join Date : Feb 2016
    Posts : 2
    Windows 10

    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 ComputerSystem Spec
  10.    24 Feb 2016 #29
    Join Date : Oct 2013
    Posts : 25,662
    64-bit Windows 10 Pro build 17046
    Thread Starter

    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 ComputersSystem Spec

 
Page 3 of 7 FirstFirst 12345 ... LastLast


Similar Threads
Tutorial Category
General Tips Add or Remove Folders from This PC in Windows 10
How Add or Remove Folders from This PC in Windows 10 The This PC window includes a Folders group that displays a linked 3D Objects, Desktop, Documents, Downloads, Music, Pictures, and Videos folder from the current user account's...
Tutorials
Customization Show Hidden Files, Folders, and Drives in Windows 10
How to Show Hidden Files, Folders, and Drives in Windows 10 Hidden files, folders, and drives do not show by default in Windows. Windows protected system files (ex: desktop.ini files) are hidden by default. You can also manually hide a file or...
Tutorials
Customization Add or Remove Folders on Start List in Windows 10
How to Add or Remove Folders on Start List in Windows 10 The Start menu in Windows 10 has a Start list that you can customize which folders appear in the list. You can add or remove the File Explorer, Settings, your Documents, your Downloads,...
Tutorials
Windows 10 VirtualBox Shared Folders Oddity
I'm running VBox 5.0 on Windows 8.1 and have created VMs for Windows 7 and Windows 10 release 10240. In both VMs I have installed Visual Basic 6 (VB6). Everything is working fine except for one strange difference. When running the Windows 7 VM, I...
Virtualization
Windows 10 Adding Folders to USB Devices
Hi everyone, I've noticed that whenever I plug in a usb thub stick or hard drive Windows 10 (Build 9879) is automatically creating empty Videos, Music, Downloads etc folders everytime. This is quite annoying, anyone know how to turn this off?...
General Support
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 18:21.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums