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
Just tested: Unlocker 1.9.2 still works in Windows 10, to take rights, delete or rename folders. If some files it can not remove, then it will reboot and erase them at boot time before windows is loading. Just do not forget use common sense in what you are destroying...
takeown problem Hi I have Windows 10 v1511 Enterprise 64 bit with two Microsoft account. From the Command Prompt (run as administrator), I tried to write Code: takeown /S localhost /U "<Microsoft_account_(E-Mail_Address)>" /P <User_password>" /F "<Directory_path>" /R /A /D Y but I get the "Access Denied" error. Why? Thanks Bye
If I write the net user command, the profile names of the Microsoft accounts are displayed. If, however, I write Code: takeown /S localhost /U "<Account_profile_name>" /P "<Password>" /F "<Directory_path>" /R /A /D Y Windows indicates that this user does not exist. Also, if I try to activate the hidden administrator Code: net user Administrator /Active:yes net user Administrator "<Password>" and then I try to write Code: takeown /S localhost /U Administrator /P "<Password>" /F "<Directory_path>" /R /A /D Y Windows always indicates that this user does not exist. So, how should I use the /U option of takeown? Thanks Bye
Here's a registry addition which adds both "Open Command Prompt (admin) here" to right click context menu and "Take Ownership" for files/folders. Just change the extension from ".txt" to ".reg". View attachment CommandPrompt_TakeOwnership.txt
If, from the command prompt (run as administrator), I had to write Code: takeown /F "<Directory_path>" /R /A /D Y icacls "<Directory_path>\*" /setowner Administrators /t icacls "<Directory_path>\*" /grant:r Administrators:F /t del /s /q "<Directory_path>\*.*" pushd "<Directory_Path>" && ( rd /S /Q "<Directory_Path>\" 2>nul & popd ) I could delete the entire content of the directory structure even if its owner does not have read rights? If not, how do I remove this content? Thanks Bye
I always get the "Access Denied" error when I run the commands icacls. Why? It is possible to delete all the DACLs of this subdirectory, its files and its subdirectories and then give them those of its home directory? If so, how do I do this? Thanks Bye
icacls problem Hi I have Windows 10 v1511 Enterprise 64 bit. I noticed that the icacls "Home_directory" /inheritance:e /Q /T /C /L command, applied to the home directory of a directory structure, is run only the first level of the structure. Why? How do I run it automatically in all the levels below? I also noticed that if I write the icacls "<Home_directory_path>" /reset /Q /T /C /L command, it goes in a loop. Why? What should I write in order to avoid this? Thanks Bye
Apparently, the commands Code: takeown /F "<Home_directory_path>" /A /R /D S /SKIPSL icacls "<Home_directory_path>" /reset icacls "<Home_directory_path>" /reset /Q /C /T /L pushd "<Home_directory_path>" && ( rd /S /Q "<Home_directory_path>" 2>nul & popd ) reach my goal but the third command goes in loop and, to stop it, I have to press Ctrl+C. Why? How do I do that the third command does not go in loop? Thanks Bye
Apparently, the commands Code: takeown /F "<Apply_Directory_Path>" /A /R /D S /SKIPSL icacls "<Apply_Directory_Path>" /reset icacls "<Apply_Directory_Path>" /reset /Q /C /T /L pushd "<Apply_Directory_Path>" && ( rd /S /Q "<Apply_Directory_Path>" 2>nul & popd ) reach my goal but the third command goes in loop and, to stop it, I have to press Ctrl+C. Why? How do I do that the third command does not go in loop? Thanks Bye
Remove the TrustedInstaller or Authenticated Users or System users from the ACLs Hi I have Windows 10 v1511 Enterprise 64 bit. From the Command Prompt, run as administrator, how should I do to remove any TrustedInstaller or Authenticated Users or System users from the ACLs of an entire directory structure also contains files and links (this must not involve the ACLs of their destination)? Thanks Bye