PowerShell to list processes using any DLLs that contain the "abc" in their filename:
Get-Process | Where-Object {$_.Modules.FileName -match 'abc'} | Select-Object Id, ProcessName, @{Name="MatchedModule"; Expression={$_.Modules.FileName | Where-Object {$_ -match 'abc'}}}
No comments:
Post a Comment