get-openFileProcess
of the PowerShell module filesystem returns an array of System.Diagnostic.Process
that specify the processes that have a given file opened. PS:> rm .\some.dll rm : Cannot remove item C:\…\some.dll: Access to the path 'C:\some.dll' is denied. … PS:> get-openFileProcess .\itext.io.dll | stop-process PS:> rm .\some.dll … OK …
Get-FileLockProcess
function.