Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was testing a batch file that used the following dos command rmdir test2 /s /q, this command failed part way through and now I seem to have folders that have no permissions. For example, in the commandline I used DIR /Q to see the owners of all folders in that directory most of them were "BUILTIN\Administrators", but the folder I'm having trouble with shows "...". I assume that means there is no owner. So even though I am a domain admin I can not view, delete, edit or modify the permissions on this folder. Does anyone have an idea of how to delete/edit this folder?

share|improve this question

You can always "Take Ownership" of the folder and subfolders, at which point you should be able to manage the permissions (assuming that filesystem corruption isn't in play here). You can use the built-in commands below to take ownership and reset the permissions:

TAKEOWN /f "X:\test2" /r /d y
ICACLS "X:\test2" /reset /T
share|improve this answer
Hi Evan I tried your commands above, and get an Access is denied." Error, that seems to be the root of all my problems. – agilenoob Feb 2 '11 at 17:20
Then try to log with a local administrator. If u get errors in security tab dont worry. U must go to ownership. – Carlos Garcia Feb 2 '11 at 17:24

Run/schedule a chkdsk with system fix turned on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.