0

Trying to track open files\locks on a server due to application issues. I can use Computer Management\Shared Folders\Open Files and see this data. The fields I get are:

Open File, Accessed By, Type, # Locks, Open Mode

Using this tool, I can export the list to a CSV. In trying to come up with a batch file to do it automatically, I found OpenFiles.exe. The script works fine, the issue is I only get these fields:

ID, Accessed By, Type, Open File (Path\executable)

There is no option with OpenFiles.exe to get the #Locks data. Which is frustrating, considering the data I want is right there in the Windows tool! Has anyone previously tackled this issue?

CHUCK-
  • 1
  • 3

1 Answers1

0

Try out the Handle utility from System Internals at https://learn.microsoft.com/en-us/sysinternals/downloads/handle

You should be able to get all of the information you are looking for with this command:

handle.exe -a -u -s
HairOfTheDog
  • 2,489
  • 2
  • 29
  • 35
  • Handle can give me the open files, but it does not record the # of locks. The -u option also does not work, I get \, I'm running this as Admin. – CHUCK- Nov 15 '19 at 16:56