Windows Server:在 Windows 中自动执行进程监视器跟踪
Summary: 进程监视器是一种信息收集工具,旨在收集 Microsoft作系统环境中的注册表和文件活动。以下信息说明了如何设置进程监视器以在特定时间自动运行,以帮助对应用程序和作系统故障事件进行故障排除。如何设置和自动执行 Windows 版 Microsoft 进程监视器以简化应用程序和系统故障排除。了解进程监视器功能、设置步骤以及如何管理日志文件以简化问题解决。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
- 使用下面的 URL 路径下载进程监视器实用程序:
- 创建文件夹“C:\PM”并将下载的文件解压到新的文件夹位置。
- 复制并粘贴”
Procmon64.exe“可执行文件”中的 ”ProcessMonitor“文件夹复制到C:\PM。 - 在 C:\PM 文件夹中创建一个名为“Log”的文件夹。

- 在要运行任务的系统上,转到“任务计划程序”、“ 开始”按钮 ->Windows 管理工具 ->任务计划程序。右键单击“Task Scheduler Library”,然后选择“Create Task...”

- 在“常规”选项卡上,为任务分配名称,分配用户帐户以运行任务,选择“无论用户是否登录都运行”设置,然后选中“以最高权限运行”设置。

- 接下来,单击“Triggers”选项卡,并在“Start”部分中为任务设置计划运行时间。在下面的任务中,我们希望每天运行它。
- 选中“Enabled”框,以确保任务处于活动状态且可运行。
- 单击“OK”保存更改。

- 单击“作”选项卡,输入运行 Process Monitor 所需的语句。
- 在“New Action”托盘上,填写以下设置,这些设置将在发生故障事件时运行 Process Monitor 程序以收集信息。
- Action:“启动程序”
- 程序/脚本:
"C:\PM\Procmon64.exe"
- 添加参数(可选):
"/BackingFile C:\PM\Log\RMRun1.pml /runtime 60 /Quiet"
- 接下来,打开“设置”选项卡,并将“如果任务运行时间超过,则停止任务”设置更改为“1 小时”。
- 单击“确定” 按钮,完成任务创建和配置。

- 必须输入分配的运行帐户的密码才能完成任务创建。

- 创建任务后,右键单击“Procmon_Trace”任务,然后单击“运行”以确认任务按预期运行。

- 运行任务后,应在使用步骤 4 中输入的进程监视器命令定义的日志路径中创建新的进程监视器日志文件。

- 右键单击“Procmon_Trace”并选择“导出...”,将任务保存到 XML 文件中。该任务可以导入到其他服务器以运行。还必须创建步骤 1 中所述的文件夹结构才能成功运行任务。

- “Procmon_Trace.xml”文件可以使用任务计划程序导入到其他服务器上,以供使用和运行。

Additional Information
请观看此视频:
Affected Products
Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022Products
PowerEdge XR2, PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge MX5016s, PowerEdge MX740C, PowerEdge MX750c, PowerEdge MX760c, PowerEdge MX840C, PowerEdge R240, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350
, PowerEdge R360, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T140, PowerEdge T150, PowerEdge T160, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640, PowerEdge XR11, PowerEdge XR12
...
Article Properties
Article Number: 000196672
Article Type: How To
Last Modified: 17 Mar 2025
Version: 9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.