File Access Denied

cntech
cntech used Ask the Experts™
on
Have Windows 2012 and there is a single file in a program that has been uninstalled that i am unable to delete or remove. I am denied access to change ownership or any rights? Any suggestions or program that can forcibly do this? I have tried looking at processes using it but unable to get it. Any advice helps?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
I would get Process Explorer from Microsoft.  Then search for the file (click the Binocular icon).  You will see what process has it open.

https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
cntechNetwork Manager

Author

Commented:
For soem reason when extracting process explorer it says cannot create folder. Weird
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
Going from memory, I open the Zip and manually in Windows Explorer then copy/paste the .exe into the folder I want it in.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

cntechNetwork Manager

Author

Commented:
It says there are no results when searching prcoess explorer. Any further suggestions?
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
Silly question but I assume you have Administrator rights to remove the file?

You can boot in safe mode and see if the lock is released.

I've used unlocker in the past to delete open files:
https://unlocker-x64.en.softonic.com/

Since it isn't a Microsoft binary, use at your own risk.
William FulksSystems Analyst & Webmaster

Commented:
Try rebooting the server and then going to \\server\c$\folder or whatever drive\folder location it is and manually deleting it BEFORE you log back in.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
If the program has been uninstalled and you are very certain that the file can be deleted, use Unlocker 1.9.2  (get it from Major Geeks). Use that to delete the file.
cntechNetwork Manager

Author

Commented:
Tried that and it says access denied in unlocker as well
Business Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
Make a different user name (member of admin group). Log into the new user and try Unlocker again.
cntechNetwork Manager

Author

Commented:
Same result. Trying to reboot into safe mode shortly and will update question.

Commented:
If you are the administrator and cannot access a file, you need to go to properties and change the owner to your ID (administrator). Then close and reopen the properties and select all the read, write, etc. permissions. Then you should be able to do whatever you want with the file. Good luck.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Thank you and I trust you were finally able to delete the file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial