• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 534
  • Last Modified:

How can I determine who has a lock on a shared file without any admin rights?

I'd like to figure out from my windows 7 workstation who on the server 2008 who has a particular file locked.  

I have no admin rights of any kind or access to the server.  We've outsourced this now, but I would still like to be able to see who is using a few specific files without having to call our outsourcing company everytime.

0
ScriptAddict
Asked:
ScriptAddict
  • 2
  • 2
3 Solutions
 
Run5kCommented:
Hopefully another EE community member knows of a trick that I haven't heard of, but I don't believe that's possible.  Unless your outsourcing team allows you to use remote access software of some kind to view the shares on the server, I think you have encountered a rather large road block.

Of course, there are some minor exceptions.  For example, if you are working in a domain environment and attempt to open an Excel spreadsheet that someone else is already modifying, a message will pop up on your screen that tells you who has it open, allows you to open it read-only, and will notify when it if fully available.

Again, hopefully another person has a viable suggestion, but I don't think it's possible.
0
 
netBoogerCommented:
Unless you want to use 3rd party tools then you won't be able to determine that without having proper permissions to access the server/workstation that the document sits on.

If you do have access then you can either remotely logon, or remotely connect using "Computer Management", then under "System Tools" and "Shared Folders" there is an option to look at "Open Files". This is where it will tell you who has what file open on that server/workstation.

If you don't have access to the system that the file sits on then you can try third party software such as (ShareWatch. I have never used this software and would assume you need someone with rights to the server/workstation to set it up.
0
 
ScriptAddictAuthor Commented:
Thanks for your comments.  

Ultimately I've given up doing this remotely and I've asked the system admin to schedule to run this command every minute on the server via scheduled events.  

openfiles /Query /V > c:\temp\FilesOpenRemotely.txt

Then I will just open that text file to see who has the file locked.  

openfiles.exe is available on any OS since Windows XP is my understanding.  

It will give all files open over the network and the windows username of the employee that has them open, as well as indicating any locks that are currently held on the file.  

This isn't ideal, but I think based on the comments above it is as close as I'm going to get.
0
 
ScriptAddictAuthor Commented:
Thanks for your help
0
 
Run5kCommented:
Under the circumstances, that sounds like a reasonably good alternative.
0
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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now