I have an mpeg file on my local hard drive that I cannot delete. My account
is an administrator account, running under vista ultimate. When I look at the
file properties I see that the ownership is unassigned (unable to display
current owner), but when I attempt to take ownership, windows security
reports "Unable to set new owner on [filename]. Access is denied."
Can anyone recommend steps to delete this file?
dean-dean - 04 Aug 2007 16:46 GMT
Try this. Right-click Command Prompt, and choose Run as Administrator.
Type the following command, and then press
ENTER:
takeown /f Path_And_File_Name
For example, type:
takeown /f C:\Users\You\Downloads\unwanted.mp3
Type the following command, and then press ENTER to grant
administrators full access to the file:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
For example, type:
icacls C:\Users\You\Downloads\unwanted.mp3 /grant administrators:F
Then try to delete unwanted.mp3.
If that doesn't work, try to delete the file in Safe Mode.
>I have an mpeg file on my local hard drive that I cannot delete. My account
> is an administrator account, running under vista ultimate. When I look at
[quoted text clipped - 4 lines]
>
> Can anyone recommend steps to delete this file?
Njetspam - 04 Aug 2007 17:11 GMT
> I have an mpeg file on my local hard drive that I cannot delete. My account
> is an administrator account, running under vista ultimate. When I look at the
[quoted text clipped - 3 lines]
>
> Can anyone recommend steps to delete this file?
Played the mpeg with vista mediaplayer ? take and install vlc-player :)
do not use mediaplayer it kinda sucks :D
Richard Urban - 04 Aug 2007 17:14 GMT
I ran into a 3 gig file just yesterday that was seemingly impossible to
delete. I tried everything.
I then ran chkdsk g: /f (fix option) on the partition. I was then able to
delete the file (it had apparently become corrupted).

Signature
Regards,
Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)
>I have an mpeg file on my local hard drive that I cannot delete. My account
> is an administrator account, running under vista ultimate. When I look at
[quoted text clipped - 4 lines]
>
> Can anyone recommend steps to delete this file?
gdoran - 27 Mar 2008 21:32 GMT
What can you do if takeown is getting 'access denied" when trying to
take ownership?

Signature
gdoran
Bob - 27 Mar 2008 23:19 GMT
How are you running takeown?
-------
*Report back, please*
[When responding to posts, please include the post(s) you are replying to so
that others may learn and benefit from the issue]
[How to ask a question]
http://support.microsoft.com/kb/555375
> What can you do if takeown is getting 'access denied" when trying to
> take ownership?
gdoran - 27 Mar 2008 23:37 GMT
takedown /f foldername /r. Get Sucess: the fodler foldername is now
owned by domainname\gdoran. Then get Info: access is denied
foldername\filename. Filename is set to read-only, can't seem to unset
it.

Signature
gdoran
Bob - 28 Mar 2008 01:26 GMT
Do this then try takeown again:
attrib -r -a -s -h del [drive] path] [filename]
-------
*Report back, please*
[When responding to posts, please include the post(s) you are replying to so
that others may learn and benefit from the issue]
[How to ask a question]
http://support.microsoft.com/kb/555375
> takedown /f foldername /r. Get Sucess: the fodler foldername is now
> owned by domainname\gdoran. Then get Info: access is denied
> foldername\filename. Filename is set to read-only, can't seem to unset
> it.
gdoran - 28 Mar 2008 17:23 GMT
Get a access denied trying to change the attribute with attrib.

Signature
gdoran
Bob - 28 Mar 2008 19:18 GMT
Run the command from an Administrator Command prompt.
> Get a access denied trying to change the attribute with attrib.