Query Details

Command Lines Used To Start Processes

Query

Use Case: Monitoring and analyzing the execution of processes on a computer to identify and investigate potential security threats or system performance issues.

Query:

Process
| project ProcessName, CommandLine, StartDateTime
| where isnotnull(CommandLine) and CommandLine != '' // Filter out empty or null command lines
| order by ProcessName, StartDateTime

Explanation

This query is used to monitor and analyze the execution of processes on a computer. It selects the process name, command line, and start date and time for each process. It filters out any processes with empty or null command lines. The results are then ordered by process name and start date and time.

Details

Ugur Koc profile picture

Ugur Koc

Released: February 4, 2024

Tables

Process

Keywords

Process,Project,StartDateTime,CommandLine,Where,IsNotNull,Orderby

Operators

projectwhereisnotnull!=order by

Actions