App or way to tell who is in a file that is locked?

Had an interview today and the guy asked an interesting question. What way (sounded like an app) can you tell who is in a file that is locked and someone needs access to it.

no one has ever told me how to tell who is in it.. so i am curious how you can tell?
Who is Participating?
kdubendorfConnect With a Mentor Commented:
In a Windows Server (I'm using SBS 2003 as the example) Open up Server Management.

Go to Advanced Management > Computer Management > System Tools > Shared Folders > Open Files tells you all of the files that are currently open by users.

I use this when I need to upgrade an App and the user has it open.
käµfm³d 👽Connect With a Mentor Commented:
openfiles perhaps?
Both the above ways work on network files.
If you want to check a file on the local disk then a very good tool Unlocker from the following site :
I ve been using it for many years and it's very good.
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Ilya RubinshteynCommented:
The file server management console will show you open sessions and open files, including username, full path, what rights are currently being used, how long has the session/file has been open for. To access either use Start-Administrator Tools -File Server Resource Manager or launch server manager (2008 and later) and expand the roles and go to file server.
käµfm³d 👽Commented:

I've only used the free version, but does unlocker tell you who has locked the file? It was my understanding it only tells what has a file locked.
There is only the free version with a possibility to donate if you wish.
Yes the program only tell you the process that has locked the file not the user. That's why I said that this is for the local files not in a network environment.
In case of a network shared file it only tells you that is used by process sys.
käµfm³d 👽Commented:
That's why I said that this is for the local files not in a network environment. it handles multiple users logged in to the same box at the same time? [ That's my point  ; )  ]
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.