Lazy lsof for Windows
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!
Tweet