Welcome to MS Vista Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   MS Vista Forums (Home) -> File Management RSS
Next:  Customise Network Folder  
Author Message
jeff

External


Since: Aug 04, 2007
Posts: 13



(Msg. 1) Posted: Sat Aug 04, 2007 8:24 am
Post subject: Can't delete a file - Access is denied to Administrator
Archived from groups: microsoft>public>windows>vista>file_management (more info?)

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?

 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
dean-dean

External


Since: Mar 13, 2007
Posts: 1267



(Msg. 2) Posted: Sat Aug 04, 2007 10:46 am
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>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?

 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Richard Urban

External


Since: Jan 08, 2007
Posts: 1918



(Msg. 3) Posted: Sat Aug 04, 2007 12:14 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>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?
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Njetspam

External


Since: May 25, 2007
Posts: 13



(Msg. 4) Posted: Sat Aug 04, 2007 7:11 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 Smile
do not use mediaplayer it kinda sucks Very Happy
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
gdoran

External


Since: Mar 27, 2008
Posts: 1



(Msg. 5) Posted: Thu Mar 27, 2008 8:32 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


--
gdoran
Posted via http://www.vistaheads.com
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Bob

External


Since: Mar 24, 2008
Posts: 57



(Msg. 6) Posted: Thu Mar 27, 2008 8:32 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>
> What can you do if takeown is getting 'access denied" when trying to
> take ownership?
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
gdoran

External


Since: Mar 27, 2008
Posts: 1



(Msg. 7) Posted: Thu Mar 27, 2008 10:37 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Bob

External


Since: Mar 24, 2008
Posts: 57



(Msg. 8) Posted: Thu Mar 27, 2008 10:37 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>
> 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
>
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
gdoran

External


Since: Mar 28, 2008
Posts: 1



(Msg. 9) Posted: Fri Mar 28, 2008 4:23 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


--
gdoran
Posted via http://www.vistaheads.com
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Bob

External


Since: Mar 24, 2008
Posts: 57



(Msg. 10) Posted: Fri Mar 28, 2008 4:23 pm
Post subject: Re: Can't delete a file - Access is denied to Administrator [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Run the command from an Administrator Command prompt.


"gdoran" wrote in message

>
> Get a access denied trying to change the attribute with attrib.
>
>
> --
> gdoran
> Posted via http://www.vistaheads.com
>
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Mihaela Roata

External


Since: Nov 03, 2010
Posts: 1



(Msg. 11) Posted: Wed Nov 03, 2010 8:19 pm
Post subject: Re: Get a access denied trying to change the attribute with attrib. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hy. I runned into that damn problem too. And after days of searching I finally found this software: Long Path Tool.
It's GREAT. You can find it here: http://www.longpathtool.com/
Regards.

> On Saturday, August 04, 2007 11:24 AM jef 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?


>> On Saturday, August 04, 2007 11:46 AM dean-dean wrote:

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


>>> On Saturday, August 04, 2007 12:11 PM Njetspam wrote:

>>> jeff wrote:
>>> Played the mpeg with vista mediaplayer ? take and install vlc-player Smile
>>> do not use mediaplayer it kinda sucks Very Happy


>>>> On Saturday, August 04, 2007 12:14 PM Richard Urban wrote:

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


>>>>> On Thursday, March 27, 2008 4:32 PM gdoran wrote:

>>>>> What can you do if takeown is getting 'access denied" when trying to
>>>>> take ownership?
>>>>>
>>>>>
>>>>> --
>>>>> gdoran
>>>>> Posted via http://www.vistaheads.com


>>>>>> On Thursday, March 27, 2008 6:19 PM Bob wrote:

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


>>>>>>> On Thursday, March 27, 2008 6:37 PM gdoran wrote:

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


>>>>>>>> On Thursday, March 27, 2008 8:26 PM Bob wrote:

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


>>>>>>>>> On Friday, March 28, 2008 12:23 PM gdoran wrote:

>>>>>>>>> Get a access denied trying to change the attribute with attrib.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> gdoran
>>>>>>>>> Posted via http://www.vistaheads.com


>>>>>>>>>> On Friday, March 28, 2008 2:18 PM Bob wrote:

>>>>>>>>>> Run the command from an Administrator Command prompt.


>>>>>>>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>>>>>>>>> Styling the WPF ScrollViewer
>>>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/f51ddf8c-5227-4f1b-a5df-ec...b3439ca
 >> Stay informed about: Can't delete a file - Access is denied to Administrator 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cannot delete folder on my Vista desktop - Access Denied -

Access denied trying to copy file across home network - I am trying to copy a file from an XP system to a Vista system and I'm getting an error telling me I do not have permission to do it and access is denied to the destination system. Here is the setup: I have a home network. On the Vista system I use...

"access denied" - When I click certain files under my name in "users" I get an access denied message. specifically cookies, history, Local settings, application data. How do I open these folders? Thanks in advance. bob

Access Denied in Profile Folders? - In XP, I often checked the contents of profile folders (application data, local settings, temporary internet, etc.) for the existence of spyware and things I could delete. But when I turn on the option to view hidden files in Vista, I've found I get....

Access denied to files and folders - I'm a software developer and after a debug crash I cannot access a folder which my program was using. It simply says "Access denied". I have tried to restart Vista (Ultimate), but it doesn't work. I have tried from the dos prompt using rd an...
   MS Vista Forums (Home) -> File Management All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]