- Download Handle
or install with chocolatey:
choco install -y handle
- Print all file handles in a file:
handle > handles.log
- Find the process in handles.log (e.g
example.exe
) and stop it with Powershell:
Stop-Process -Name example
As an alternative, you could use the GUI tool Process Explorer (-> choco install -y procexp
) and search your locked file with Ctrl+F