Like so many things I seem to get involved in, I think this is best illustrated by following an actual, real-world, TCC session step-by-step. So first, as a starting point:
Obviously Windows 7. (Incidentally, it's Windows 7 Professional.)
As you can see, not only am I an "elevated" user, I'm actually logged in under the true "Administrator" account in Windows 7. (I don't think it's even possible to be more "elevated" than this! :) )
Here I went to the directory whose name suggests what the problem is:
This shows what is in that directory, just ordinary-looking files.
And you can see above that they have only the completely-normal "Archive" attribute set.
So below is the problem in all of its glory:
If even a true administrator can't delete these files, who can? And how did files like this even get created, anyway???
This is a completely real-world situation, not some kind of "made up" example. How can files even exist that can not be deleted by an "Administrator" who is as "administrative" as it is even possible to be?
- Dan
Code:
[Z:\]Ver
TCC 12.11.76 Windows 7 [Version 6.1.7601]
Code:
[Z:\]Echo %_Admin %_WinUser
1 Administrator
Code:
[Z:\]CDD D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode
Code:
[D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode]Dir /K /M /H
9/27/2010 15:07 78,848 Sample1.txt
11/04/2011 14:26 37,376 Sample2.txt
9/27/2010 16:57 105,984 Sample3.txt
12/27/2010 15:10 49,664 Sample4.txt
2/19/2012 9:06 36,352 Sample5.txt
9/27/2010 15:24 103,424 Sample6.txt
Code:
[D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode]Attrib *
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample1.txt
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample2.txt
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample3.txt
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample4.txt
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample5.txt
___A__________ D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample6.txt
So below is the problem in all of its glory:
Code:
[D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode]Del Sample?.txt
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample1.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample1.txt"
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample2.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample2.txt"
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample3.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample3.txt"
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample4.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample4.txt"
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample5.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample5.txt"
Deleting D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample6.txt
TCC: (Sys) Access is denied.
"D:\TextFilesThatCanNotBeDeletedEvenInFullAdministrativeMode\Sample6.txt"
0 files deleted 6 failed
This is a completely real-world situation, not some kind of "made up" example. How can files even exist that can not be deleted by an "Administrator" who is as "administrative" as it is even possible to be?
- Dan