I find that this almost always happens when there is a remote lock on the
file, so the deletion is 98% processed. :)

Try to ensure that there are zero file handles open to that folder or its
parent via the HANDLE utility from SysInternals.   If there is, and the
process holding it open is anything OTHER than System, you can shutdown or
kill the process to finish off the delete operation.

If the process is System, however, only a reboot will finish it off.

The "can't take ownership" error is a red herring.


*ASB *(My Bio via About.Me <http://about.me/Andrew.S.Baker/bio>)
 *Exploiting Technology for Business Advantage...*

*
*



On Mon, Jan 17, 2011 at 12:16 PM, [email protected] <[email protected]
> wrote:

> I have a user's roaming profile directory located on a Windows 2008 server
> I cannot get rid of.  I've been able to delete everything in the directory
> except 4 files in a certain subdirectory called Recent.
>
> I tried taking ownership from GUI and from command line (via takeown.exe_
> with no success.  I keep getting, "Unable to set new owner on 'filename'"
> Access is Denied.
>
> The files and/or Recent are NOT opened/used.  When going to the security
> tab, it also says I don't have permissions to view the object's security
> properties.
>
> All 4 of the files which I cannot take ownership of or delete are .lnk
> files (They showup in folder view as a type of "Shortcut).
>
> Any thoughts on how to get rid of these things?
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to