Access denied when taking ownership of a file

ihuazai

New member
Local time
1:09 AM
Messages
1
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 My Computer

At a glance

Windows 7
OS
Windows 7
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 My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
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.[FONT=&quot]
[/FONT]
 

My Computer My Computer

At a glance

windows 8.1 proIntel Core i54096 MB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
surface pro 1
OS
windows 8.1 pro
CPU
Intel Core i5
Memory
4096 MB
Screen Resolution
1920 x 1080 x 59 hertz
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 My Computer

At a glance

XP-Vista-W7
OS
XP-Vista-W7
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 My Computer

At a glance

Windows 7 Ultimate 32bit SP1Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz4 GBATI Radeon HD 2600 Pro
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
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 My Computer

At a glance

7 Pro 32 & 7 Home Prem 64
Computer type
PC/Desktop
OS
7 Pro 32 & 7 Home Prem 64
Back
Top