The lazy programmer scripts
scripts that work

Lazy lsof for Windows GitHub

If you need the lsof functionality on a Windows system, you can check out this repo: https://github.com/cklutz/LockCheck

I have already built the project and you can download the `lsof.exe` binary from https://github.com/ader1990/LockCheck/blob/master/Binaries/lsof.exe.

This binary works on Windows and does not require any external dependency.

Tested on Windows 10 x64.

#ps1
# Example usage and output
PS C:\Users\kami> lsof.exe 'C:\Windows\System32\samcli.dll'
Process ID        : 17076
Process Start Time: Tuesday, August 29, 2017 7:39:19 PM
Application Type  : MainWindow
Application Status: Running
Application Name  : Skype
TS Session ID     : 1
----------------------------------------------------
Process ID        : 3516
Process Start Time: Thursday, August 31, 2017 6:09:03 PM
Application Type  : OtherWindow
Application Status: Running
Application Name  : Microsoft OneDrive
TS Session ID     : 1

That's all, folks!

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, linux, cmd, powershell, binary, visual-studio

Leave a comment

comments powered by Disqus

« Lazy create Windows NAT adapter - Lazy show Windows volume information »