Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista file management

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

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 08-04-2007   #1 (permalink)
jeff
Guest


 

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?

My System SpecsSystem Spec
Old 08-04-2007   #2 (permalink)
dean-dean
Guest


 

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?


My System SpecsSystem Spec
Old 08-04-2007   #3 (permalink)
Njetspam
Guest


 

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
My System SpecsSystem Spec
Old 08-04-2007   #4 (permalink)
Richard Urban
Guest


 

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?


My System SpecsSystem Spec
Old 03-27-2008   #5 (permalink)
gdoran
Guest


 

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

My System SpecsSystem Spec
Old 03-27-2008   #6 (permalink)
Bob
Guest


 

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@xxxxxx-mx.forums.vistaheads.com> wrote in message
news:gdoran.36y8oh@xxxxxx-mx.forums.vistaheads.com...
Quote:

>
> What can you do if takeown is getting 'access denied" when trying to
> take ownership?
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>
My System SpecsSystem Spec
Old 03-27-2008   #7 (permalink)
gdoran
Guest


 

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

My System SpecsSystem Spec
Old 03-27-2008   #8 (permalink)
Bob
Guest


 

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@xxxxxx-mx.forums.vistaheads.com> wrote in message
news:gdoran.36ye8g@xxxxxx-mx.forums.vistaheads.com...
Quote:

>
> 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
>
My System SpecsSystem Spec
Old 03-28-2008   #9 (permalink)
gdoran
Guest


 

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

My System SpecsSystem Spec
Old 03-28-2008   #10 (permalink)
Bob
Guest


 

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


Run the command from an Administrator Command prompt.


"gdoran" <gdoran.36zqw4@xxxxxx-mx.forums.vistaheads.com> wrote in message
news:gdoran.36zqw4@xxxxxx-mx.forums.vistaheads.com...
Quote:

>
> Get a access denied trying to change the attribute with attrib.
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied to Administrator Lu Powell Vista General 8 08-24-2008 08:11 PM
Access denied as Administrator Al Vista security 14 06-24-2008 01:03 PM
access denied c: as administrator darren Vista General 1 04-19-2008 05:32 AM
Re: How to Delete a System File in Windows Vista...Access Denied when in System32 Rick Rogers Vista performance & maintenance 0 03-26-2008 06:04 PM
Access Denied when trying to delete virus file Ian D Vista security 3 08-17-2007 06:11 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

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