Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can tell what process is holding a lock using Unlocker.

But the problem is that, when there is a lock on a file on a remote machine, Unlocker doesn't show who or what process is locking.

Is there anyway what is holding a lock on a remote file (my remote file is mapped through a network drive)? and also how to remove the lock?

share|improve this question
while installing unlocker, make sure you uncheck the option for ebay promos. :) – Gulzar May 1 '09 at 22:35
up vote 10 down vote accepted

Open up Computer Management, right click (my) Computer and click "Manage":

System Tools > Shared Folders > Open Files

To connect to a remote machine, select "Computer Managment (Local)" in the left pane, then pull up the "Action > Connect to another computer..." dialog, enter the computer name, and hit ok.

You can disconnect sessions from this interface as well.

share|improve this answer
This works for now. Seems kind of annoying to run fsmgmt.msc under different credential (runas /user:domain\user "mmc fsmgmt.msc") – Sung May 4 '09 at 17:54

Process Explorer can search for handle on a file

enter image description here

On a remote machine however, you want to combine PsExec with Handle in order to execute Handle on the distant computer.

share|improve this answer
I use "Process Explorer" a lot on my local machine. How do you run it on a remote one? – nzpcmad May 1 '09 at 1:12

Look at handle from Sysinternals.

share|improve this answer

I don't have experience in this, but the openfiles command might do what you want.

share|improve this answer

Unlocker is a great tool.

We have it on all of our Windows servers. It will unlock the file for you and show you what is using it.

share|improve this answer
That's already what I am using and mentioned in my question... – Sung May 1 '09 at 0:38

If you're on Unix/Linux/BSD, lsof(8) should do what you want.

drewble:~$ lsof /home/drew/.purple/cap.db 
pidgin  6488 drew   13u   REG   8,18 679936 9971928 /home/drew/.purple/cap.db
share|improve this answer
It says Windows on the first line. – Ben Alpert May 1 '09 at 0:34
It did till Joel corrected that reference to a tag – Stephen Denne May 1 '09 at 9:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.