大网数据广告活动
Windows排障命令

Sysmon in Windows

· 52CE 我爱测

Learn how to use Sysmon, a Windows system service and device driver, to monitor and log system activity to the Windows event log. Explore syntax and examples.

System Monitor (Sysmon) is a Windows system service and device driver that you install on a system. It stays resident across system reboots to monitor and log system activity to the Windows event log. It provides detailed information about process creations, network connections, and changes to file creation time.

Tip: Starting February 2026, Sysmon is available as a built-in optional feature for Windows 11. To learn more, see Sysmon overview.

Looking for the Sysinternals standalone documentation? See Sysinternals Sysmon.

Syntax

sysmon [-i [<configfile>]] [-c [<configfile>]] [-m] [-s] [-u [force]] [-accepteula]

Parameters

Parameter Description
-i [<configfile>] Installs the service and driver. Optionally includes a configuration file.
-c [<configfile>] Updates the configuration of an installed Sysmon driver, or dumps the current configuration if no other argument is provided. Optionally includes a configuration file.
-m Installs the event manifest. The service install implicitly does this action.
-s [<schemaversion>] Prints the configuration schema definition of the specified version. Specify all to dump all schema versions. The default is latest.
-u [force] Uninstalls the service and driver. Using -u force causes uninstall to proceed even when some components aren't installed.
-accepteula Automatically accepts the End User License Agreement (EULA) on installation.
-? config Displays more information on configuration files.

Remarks

  • Event logs are stored in Applications and Services Logs/Microsoft/Windows/Sysmon/Operational log.
  • The install or uninstall options don't require a reboot.
  • To reset the configuration to default settings, use sysmon -c --.

Examples

To install Sysmon with default settings, run the following command:

sysmon -accepteula -i

To install Sysmon with a configuration file, run the following command:

sysmon -accepteula -i c:\windows\config.xml

To dump the current configuration, run the following command:

sysmon -c

To reset the configuration to default settings, run the following command:

sysmon -c --

To reconfigure Sysmon with a configuration file, run the following command:

sysmon -c c:\windows\config.xml

To display the configuration schema, run the following command:

sysmon -s

To display the configuration schema for a specific version, run the following command:

sysmon -s 4.50

To display all configuration schema versions, run the following command:

sysmon -s all

To uninstall Sysmon, run the following command:

sysmon -u

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 02/23/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。