Access denied when taking ownership of a file


  1. Posts : 1
    Windows 7
       #1

    Access denied when taking ownership of a file


    Hi,

    I recently downloaded an application file (.exe), and tried to delete it, but i keep getting the error "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item".

    I tried changing the ownership of the file > right click > properties > security > owner >edit >selected my user account (administrator) > and clicked ok. All i got was an "access is denied error".

    I even tried going to cmd and using the takeown and icacls functions, but am still getting the access is denied error.

    Any advice on how to take ownership of this file is greatly appreciated.
      My Computer


  2. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #2

    You seem to have used all the heavy guns available in our arsenal. How about setting back to a restore point from before you downloaded the program?
      My Computer


  3. Posts : 141
    windows 8.1 pro
       #3

    there are two programs i can think of
    1 - unlocker, i don't have a link for it, but it should be easy to find it.
    2 - winbubbles, it gives you the right click option in the menu to delete afterwards.
    the first one, never had a problem with it.
      My Computer


  4. Posts : 80
    XP-Vista-W7
       #4

    Remove the system and hidden file attribute first. Use an elevated command prompt.

    attrib -s -h C:\and the full path of the file, if your drive is not C:\ substitute correct letter

    Now try to take ownership

    .
      My Computer


  5. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #5

    Boot into safe mode, use Unlocker. That should work to delete the file. If it was a malicious file, there may be more files protecting it.
      My Computer


  6. Posts : 10
    7 Pro 32 & 7 Home Prem 64
       #6

    Old thread I know - but maybe someone else stumbles upon this as I did.

    Mombodog mentioned above using elevated status - this worked for me, but without having to go to the command line. I started Explorer with the right-click "Run as Administrator" option and then was able to take ownership as per OP's post.

    In my case it was also a downloaded file, but a bit torrent using BitLord which I'm still not completely au fait with and I may have used an option in BL that unloaded the file without releasing it properly first. Who knows, but I wasn't about to try re-getting a 5.1 GB file that had taken over a week to download in the first place!!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:09.
Find Us