Find out who is locking a file on a network share

olorin picture olorin · Feb 24, 2009 · Viewed 394.4k times · Source

I want to known who is locking a file on a network share.

Here is the problem : the network share is on a NAS, so I can't log on. I need a tool to find out remotely who is locking the file. It is not practical to reboot the NAS every time, because there are several users.

Handle.exe, Process Explorer and PsFile seems to be limited to files on the local machine, so they don't work for me.

Answer

Dirk Paessler picture Dirk Paessler · Oct 12, 2009

Just in case someone looking for a solution to this for a Windows based system or NAS:

There is a built-in function in Windows that shows you what files on the local computer are open/locked by remote computer (which has the file open through a file share):

  • Select "Manage Computer" (Open "Computer Management")
  • click "Shared Folders"
  • choose "Open Files"

There you can even close the file forcefully.