Query Details
Use Case: Analyzing and auditing system processes for security or operational efficiency by listing their names, IDs, working directories, start times, and command lines in chronological order. Query: Process | project ProcessName, ProcessId, CurrentWorkingDirectory, StartDateTime, CommandLine | where isnotnull(CurrentWorkingDirectory) and CurrentWorkingDirectory != '' // Filter out null or empty working directories | order by ProcessName, StartDateTime
This query retrieves information about system processes such as their names, IDs, working directories, start times, and command lines. It filters out processes with null or empty working directories and sorts the results in chronological order based on the process name and start time.

Ugur Koc
Released: February 4, 2024
Tables
Keywords
Operators