Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to delete an old Windows directory from my system drive (C), but I am unable to due NTFS permissions. I tried from Win 7 and Win 2003, but can't do it. I tried safe mode as well with same result.

Is there any way to work around this (other then formating the drive)? Perhaps changing the owner or something? It errors at files like "oldwin/bfsvc.exe". Is there some "superuser" in windows similar to linux root account?

Thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

If you're a member of Administrators, you should be able to take ownership of an old Windows directory, apply appropriate permissions, then delete it.

  1. Right-click on the directory and choose Properties, then go to the security tab.

  2. Click Advanced, then the Owner tab. Change the owner to yourself and flag "Replace owner on subcontainers and objects". Click OK and let this run.

  3. When this finishes, go back into Properties → Security and add yourself as a user and allow full control. Click OK and let this run.

  4. At this point you should be able to delete the folder, or at least most of it.

If this still doesn't work, you may need to do the deletion as SYSTEM. To do this, download psexec and run it as follows:

psexec -sid cmd

This will open a command prompt running as the SYSTEM user, which is a higher-privileged account meant for the system's use. From this command prompt:

rd /q /s C:\OldWindowsFolder

If that doesn't work, cd into the old Windows folder and start deleting sub-folders and files until you find out which one is preventing you from continuing.

share|improve this answer
    
Thanks! I will try now –  Balchev Mar 26 '10 at 11:23
    
It worked like a charm, thanks! –  Balchev Mar 26 '10 at 11:29

Your Answer

 
discard

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.