Jump to content

Deleting a folder when permissions have been accidentally disinherited


Recommended Posts

Posted
Done that. Didn't work. I ticked the Replace all child object permissions with inheritable permissions from this object box, and it went through all the folders, got to the problematic one and said nah, not allowed.

 

Unlocker from Cedric Collomb will probably fix this... Download Unlocker 1.9.2

Posted

Sounds like it getting close to

1) identify the exact sector of the disk on which it resides

2) get a hacksaw

3) REALLY delete it

 

 

 

 

 

 

 

4) buy new disk

Posted
takeown /F dirname

 

?

 

Or use a boot disk/DaRT/PE disk and delete the offending file when the OS isn't running.

 

I agree with @LeMarchand. The Takeown command has helped me out with buggy ownership issues in the past. Also booting into PE then attempting to delete it is a good idea too.

Posted

Psydii's patented "delete that file now" process*:

 

Psexec -s -I cmd

 

cd to the folder containing the offending item

 

takeown the file.

 

icacls to get full control

 

Delete it.

 

If an earlier step fails, uses subst to mount this deep folder as a drive letter. Change to this new drive and try again.

 

If that doesn't work, the file may have trailing spaces. To delete in this case use the NT path to get rid of it ( "\\?\DRIVE:\path\to\file .docx" )

 

*https://support.microsoft.com/en-gb/kb/320081

Posted

WIll this work you...

 

Open 7Zip File Manager and browse to the parent folder so that you can see the rascal folder in the pane.

Select the folder you want to delete, then Shift+Delete.

Posted
When using PS Tools such as PSExec, note that you Anti Virus may mark these as Potentially Unwanted Programs and may quarantine them.

Yep. And it won't give me the option to allow it :/

Posted
It's called "Geography", and there are no files or folders inside.

dont be so sure if you dont have permissions there could be 10gb of stuff there and it would show 0 file 0 folders

Posted
dont be so sure if you dont have permissions there could be 10gb of stuff there and it would show 0 file 0 folders

 

I created the folder. I moved everything out of the folder (well, actually, the only thing inside it was Google Earth.).. I then Shift+Delete and confirmed. Then it didn't go away and disinherited permissions.

  • 5 years later...
Posted

Did you try this:

 

Psydii's patented "delete that file now" process*:

 

Psexec -s -I cmd

 

cd to the folder containing the offending item

 

takeown the file.

 

icacls to get full control

 

Delete it.

 

If an earlier step fails, uses subst to mount this deep folder as a drive letter. Change to this new drive and try again.

 

If that doesn't work, the file may have trailing spaces. To delete in this case use the NT path* to get rid of it ( "\\?\DRIVE:\path\to\file .docx" )

 

*https://support.microsoft.com/en-gb/kb/320081

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...