Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista File Management > Can't delete a file - Access is denied to Administrator

Reply
Thread Tools Display Modes

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

 
 
jeff
Guest
Posts: n/a

 
      08-04-2007
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?
 
Reply With Quote
 
 
 
 
dean-dean
Guest
Posts: n/a

 
      08-04-2007
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" <> wrote in message
news:F0CF67CC-5A5A-4D62-AABD-...
>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?


 
Reply With Quote
 
Njetspam
Guest
Posts: n/a

 
      08-04-2007
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
 
Reply With Quote
 
Richard Urban
Guest
Posts: n/a

 
      08-04-2007
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" <> wrote in message
news:F0CF67CC-5A5A-4D62-AABD-...
>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?


 
Reply With Quote
 
gdoran
Guest
Posts: n/a

 
      03-27-2008

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

--
gdora
Posted via http://www.vistaheads.co

 
Reply With Quote
 
Bob
Guest
Posts: n/a

 
      03-27-2008
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" <> wrote in message
news:...
>
> What can you do if takeown is getting 'access denied" when trying to
> take ownership?
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>


 
Reply With Quote
 
gdoran
Guest
Posts: n/a

 
      03-27-2008

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

 
Reply With Quote
 
Bob
Guest
Posts: n/a

 
      03-27-2008

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" <> wrote in message
news:...
>
> 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
>


 
Reply With Quote
 
gdoran
Guest
Posts: n/a

 
      03-28-2008

Get a access denied trying to change the attribute with attrib

--
gdora
Posted via http://www.vistaheads.co

 
Reply With Quote
 
Bob
Guest
Posts: n/a

 
      03-28-2008

Run the command from an Administrator Command prompt.


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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Delete a System File in Windows Vista...Access Denied when in System32 Jason Windows Vista Performance 4 02-21-2010 01:57 PM
Access Denied to C: as administrator Sarah Windows Vista Security 10 05-07-2009 09:26 AM
Access denied as Administrator Al Windows Vista Security 12 06-24-2008 06:03 PM
access denied c: as administrator darren Windows Vista General Discussion 2 04-19-2008 10:49 AM
Access Denied when trying to delete virus file Ian D Windows Vista Security 3 08-17-2007 11:11 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59