System command

sxstrace command

Diagnoses side-by-side problems. This guide lists the documented syntax and parameters for sxstrace; check Microsoft Learn for version, role and execution-context requirements.

Availability: Microsoft Learn command reference spanning Windows client and Windows Server releases; some entries are legacy, role-specific, optional-feature or interactive subcommands.中文

Documented syntax

sxstrace [{[trace -logfile:<filename> [-nostop]|[parse -logfile:<filename> -outfile:<parsedfile>  [-filter:<appname>]}]

The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.

Examples

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

sxstrace trace -logfile:sxstrace.etl

Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.

sxstrace parse -logfile:sxstrace.etl -outfile:sxstrace.txt

Parameters, options and clauses

Option / clauseDescription
traceMicrosoft documents this argument or subcommand; check the linked reference for its required format and context.
-logfileMicrosoft documents this switch; use the linked reference for accepted values, effects and version limits.
<filename>Microsoft documents this argument or subcommand; check the linked reference for its required format and context.
-nostopMicrosoft documents this switch; use the linked reference for accepted values, effects and version limits.
parseMicrosoft documents this argument or subcommand; check the linked reference for its required format and context.
-outfileMicrosoft documents this switch; use the linked reference for accepted values, effects and version limits.
<parsedfile>Microsoft documents this argument or subcommand; check the linked reference for its required format and context.
-filterMicrosoft documents this switch; use the linked reference for accepted values, effects and version limits.
<appname>Microsoft documents this argument or subcommand; check the linked reference for its required format and context.
stoptraceMicrosoft documents this argument or subcommand; check the linked reference for its required format and context.
-?Display command help or the supported command-line usage.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory