28

I have got this file that I can't delete. It happened after a system crash, so the CHKDSK kicked in upon next reboot. After that, I can't delete the file. This is on Windows Home Server, and the file is one of those hidden Thumbs.db, and my Windows Home Server reports a "File conflict" on the file, the reason: "Access Denied"

What I have tried so far, running as an Administrator:
Delete: Access Denied
TakeOwn.exe : Access Denied
Attrib.exe -s -h : Access Denied
cacls.exe : Access Denied (even whe trying to display the current owner)
Rename: File not found (its hidden)
Re-boot in to safe mode and tried the above: Access Denied
Running the above commands as Local System: Access Denied

Tizer Unlocker: Fail (Doesn't find anything locking the file)
File Assasin: Crashes ("FindRemoteFileHandles returned NULL value.")

I have used the CHKDSK /f again, rebooted since some suggestions is that the file has been corrupted, but that didn't change anything.
Any suggestions ?

Update: In a totally different scenario, I experienced a similar situation; Access Denied when trying to take ownership of a file. It turned out that the file was owned by TrustedInstaller, which is not possible to override just by being an Administrator. In this case, one can use psexec /ids cmd to elevate yourself to System and then TakeOwn.exe /a

Magnus
  • 1,068
  • Who is the current owner of the file?
  • Are you sure you have the "take ownership" privilege?
  • Are you able to rename/move the file? (it might sound unlikely but try it!)
  • – Hugh Allen Apr 12 '10 at 07:18
  • @Hugh. 1. Can't be determined. CACLS.EXE gets Access Denied when trying to display owner. 2. I can't get any higher in the hierarchy than Administrator. 3. Rename can't find the file, since its hidden. – Magnus Apr 12 '10 at 19:14
  • Have you tried using Process Monitor to see what the low-level error is? http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx – Hugh Allen Apr 14 '10 at 07:12
  • (in Process Monitor, so as not to be overwhelmed with a flood of info, add an Include filter for "Path contains Thumbs.db". An Include filter excludes everything else.) – Hugh Allen Apr 14 '10 at 07:15
  • I have a similar problem with a acouple of files I need to delete. I tried CACLS, ICALCS, and TakeOwn all running as Administrator and then System using psexec. I also tried Unlocker. Nothing has worked. – Fred Sep 10 '13 at 00:40
  • 1
    and when psexec then takeown ALSO results in an "access denied" ? How do I use process monitor to find this low level error? – frumbert Jul 02 '15 at 06:26