An open-source alternative to the Sysinternals Handle
- Identifies processes that are locking specific files or folders
- Include process modules in the search
- Note:
Sysinternals Handle
doesn't include process modules in the search. Thus, it can fail to find the locking process.
- Note:
- Shows information about all handles in the system
- Supports JSON output
- Full Unicode support
- Note:
Sysinternals Handle
doesn't support Unicode file names (more details)
- Note:
- Windows 7 and higher.
> Handle2.exe --help
Handle2 1.0
A console utility that displays information about system handles and identifies the processes locking a specific file or folder.
https://github.com/PolarGoose/Handle2
Usage:
Handle2.exe [--json] [--path FILE_OR_FOLDER_FULL_NAME|--dump-all-handles]
Examples:
Handle2.exe --path C:\Windows\System32
Handle2.exe --json --path C:\Windows\System32\ntdll.dll
Handle2.exe --json --path C:\Windows\explorer.exe
Handle2.exe --json --dump-all-handles
Command-line options:
--json (Default: false) JSON output. For details on the meanings of the fields provided, please consult
the HandleInfo and SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX structures in the source code.
--path Required. Displays the processes locking the path
--dump-all-handles Required. (Default: false) Displays information about all system handles and modules
--help Display this help screen.
--version Display version information.
To build the project, run build.ps
script (git.exe
should be in the PATH)