TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Vista All

Can't delete a file - Access is denied to Administrator

Windows Vista All

 
 
Thread Tools Display Modes
Unread 17-08-2007, 09:45 AM   #1
jeff
Guest
 
Posts: n/a
Can't delete a file - Access is denied to Administrator

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?
 
Unread 17-08-2007, 09:45 AM   #2
dean-dean
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator

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.

"jeff" <jeff@discussions.microsoft.com> wrote in message
news:F0CF67CC-5A5A-4D62-AABD-50D8A83E10BD@microsoft.com...
>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?


 
Unread 17-08-2007, 09:45 AM   #3
Njetspam
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator

jeff wrote:
> 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?

Played the mpeg with vista mediaplayer ? take and install vlc-player
do not use mediaplayer it kinda sucks
 
Unread 17-08-2007, 09:45 AM   #4
Richard Urban
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator

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).

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

"jeff" <jeff@discussions.microsoft.com> wrote in message
news:F0CF67CC-5A5A-4D62-AABD-50D8A83E10BD@microsoft.com...
>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?


 
Unread 27-03-2008, 09:16 PM   #5
gdoran
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator


What can you do if takeown is getting 'access denied" when trying to
take ownership?


--
gdoran
Posted via http://www.vistaheads.com

 
Unread 27-03-2008, 11:13 PM   #6
Bob
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator

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

"gdoran" <gdoran.36y8oh@no-mx.forums.vistaheads.com> wrote in message
news:gdoran.36y8oh@no-mx.forums.vistaheads.com...
>
> What can you do if takeown is getting 'access denied" when trying to
> take ownership?
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>


 
Unread 27-03-2008, 11:14 PM   #7
gdoran
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator


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
Posted via http://www.vistaheads.com

 
Unread 28-03-2008, 01:13 AM   #8
Bob
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator


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

"gdoran" <gdoran.36ye8g@no-mx.forums.vistaheads.com> wrote in message
news:gdoran.36ye8g@no-mx.forums.vistaheads.com...
>
> 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
> Posted via http://www.vistaheads.com
>


 
Unread 28-03-2008, 05:13 PM   #9
gdoran
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator


Get a access denied trying to change the attribute with attrib.


--
gdoran
Posted via http://www.vistaheads.com

 
Unread 28-03-2008, 07:15 PM   #10
Bob
Guest
 
Posts: n/a
Re: Can't delete a file - Access is denied to Administrator


Run the command from an Administrator Command prompt.


"gdoran" <gdoran.36zqw4@no-mx.forums.vistaheads.com> wrote in message
news:gdoran.36zqw4@no-mx.forums.vistaheads.com...
>
> Get a access denied trying to change the attribute with attrib.
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>


 
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Locked files in Windows XP - Cannot delete file: Access is denied pixelpainter TIPS 'n' TRICKS 27 13-07-2012 12:25 AM
Delete Folder - Access Denied. Andrew Staley Windows Server 2003 4 28-08-2007 04:48 AM
Access denied on a particular file Muzzzy Windows Server 2003 16 28-08-2007 04:33 AM
Access denied on a particular file Muzzzy Windows Server 2003 2 28-08-2007 04:30 AM
Re: Signed On As Administrator, but Denied Access TelGar Windows Vista All 1 17-08-2007 09:05 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 10:48 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional