-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File LockSmith via commandline #22315
Comments
It would be also useful for me. |
+1 Agreed |
+1 would be also useful for me |
+1, would also like this feature |
+1 |
+1 |
+1 |
See my comments in #28529 |
+1 |
Need this so badly. Sysinternals handle is a piece of junk and doesn't work. |
There are already existing console tools
Don't they do what is asked? |
The version I implemented has features like "wait until target process closes before returning", which is immensely useful in scripts. |
You can do that with a small PowerShell script:
Also, Sysinternals Handle is more reliable. When run from an admin, it uses a kernel driver, |
Handle is actually very unreliable and often misses handles as well as has false positives. Meanwhile, PowerToys LockSmith actually closes more than necessary, but at least gets the job done. |
It is strange because Sysinternals Handle uses the same Do you have any particular scenario that can be reproduced? |
Yea sysinternals just doesn't work for this one use case (after unloading somebody elses' .dll for their Windows context menu handler). I searched for handles on both the file and its parent folder. I wrote this to programmatically get all the handles. I also tried just using sysinternals directly and searching through the raw text... my function gives the same results.
|
Have you tried to use Process Explorer Find->"Find Handle or Dll" ? |
@PolarGoose Yea that seems to work too. But there's still no command line option to do it. |
Description of the new feature / enhancement
Thank you for creating this feature
I went through documents
https://learn.microsoft.com/en-us/windows/powertoys/file-locksmith
and found no info on how to unlock folder using commandline(CMD)
Scenario when this would be used?
to unlock folder using programming
for example, in LockHunter
https://lockhunter.com/
I can run in
Supporting information
No response
The text was updated successfully, but these errors were encountered: