【问题标题】:Script that outputs all DLLs used by exe输出 exe 使用的所有 DLL 的脚本
【发布时间】:2018-05-18 07:59:25
【问题描述】:

在cmd中一行

tasklist /m /fi "imagename eq xxxxx.exe" > output.txt

会将所有进程使用的 DLL 输出到一个文件中。

如何将输出分隔为多个 txt 文件,每个文件都包含 DLL 使用的进程名称?

【问题讨论】:

    标签: python powershell dll cmd exe


    【解决方案1】:

    这应该可以得到你想要的:

    Get-Process |
        ForEach-Object {
            $procName = $_.Name
            Get-Process -InputObject $_ -Module -ErrorAction SilentlyContinue |
                Export-Csv ".\$procName.csv" -NoTypeInformation
        }
    

    【讨论】:

      猜你喜欢
      • 2022-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      • 2014-09-22
      • 1970-01-01
      • 2010-10-19
      相关资源
      最近更新 更多