Forum Discussion
lukasz-zi
Feb 11, 2021Copper Contributor
How I can achive information about which process is handling files/directories?
Hello, here is the idea: I have a lot of services with name xxx.exe (and diffrent PID of course). Which service have own directory. Let's say we have 5 services and directories: C:\srv\service1,.....
farismalaeb
Feb 12, 2021Iron Contributor
Check these.
https://www.cloudsavvyit.com/2956/how-to-manage-open-file-handles-with-powershell/
https://mcpmag.com/articles/2018/07/10/check-for-locked-file-using-powershell.aspx
Hope these can help or give you an idea of how to do it
==========
Please client on Best response if this answer help.
lukasz-zi
Feb 13, 2021Copper Contributor
farismalaebas I said handle tool it's unuseful in my case. That second method do not give me an information about process ID which I am looking for so it's also unuseful.