Problem
For weeks I have been trying to determine why some of my PowerShell scripts have been failing to complete. Eventually, I found the problem was that one of my files was remaining locked but I could not see why it was happening.
Introducing Lock Hunter
LockHunter is a useful tool for dealing with files that cannot be deleted, moved, or renamed due to them being locked by some processes in Windows. The tool is designed to help identify and release these file locks, making file management more convenient.
It can be downloaded here: – https://lockhunter.com/download.htm
Key Features
- Explorer Context Menu Integration: LockHunter adds options to the right-click context menu in Windows Explorer, allowing users to quickly check and unlock files directly from the Explorer interface.
- LockHunter Main Window: This window provides detailed information about the locked file, including which processes are locking it and options to unlock, delete, or rename the file.
- Checking Locked Files in a Folder: LockHunter can show what files are locked within a particular folder, giving users a broader view of file locks in a specific location.
- Options to Unlock, Kill Processes, or Remove Files: The tool provides various options like unlocking the file, terminating the locking process, or even deleting the locked file.
There are a few screenshots of Lock Hunter here: – https://blog.crystalrich.com/lockhunter-3-4-released/#more-1148
Other information
For those that have company policies regarding countries they are allow to deal with, this utility comes from a company based in Russia.