This request is for a co-worker's requirement. He has an application that sometimes cannot access a file because it is locked by another user. He wants the non-admin user to be able to determine who has the lock on the file so that the user can get the lock removed. What they do now, is to call the helpdesk to get an admin to do a NET FILE at the server to determine who has the file locked. He would like a solution that does not require admin intervention.

I poked around in WMI but could not find anything. I also looked in the UDF lib and only found one UDF that would report whether a file was locked but not by whom.

Does someone have a method for a non-admin to determine who has a lock on a file?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.