I noticed that a 250GB USB external drive I used for various storage tasks had a number of locked folders, with what looked like arbitrary Windows-generated folder names. The contents of the folders looked like temporary installation setups, so I tried to delete one of them. I was told "Folder Access Denied"; I had insufficient permissions to delete the folder. To obtain sufficient permissions is a bit convoluted, but I least I could then delete these useless folders.
Here's what you need to do:
You should now be able to delete the folder.
It is also possible to achieve this end by using
the subinacl
command at the cmd.exe
command line.
It is not installed by default, you have to download it
from Microsoft.
You can run it like so:
subinacl /subdirectories "folder" /setowner="domain\newowner" /grant="domain\newowner"=F subinacl /subdirectories "folder\*.*" /setowner="domain\newowner" /grant="domain\newowner"=F
You seem to have to change the containing folder first, and then all its children.