SysAnalyzer accepts a target path and several optional switches on the command line. This is intended for unattended runs, integration with sandbox queues, and scripted batch analysis.
sysanalyzer.exe "<path to sample>" [/autostart] [/delay <n>] [/args "<arg string>"] [/outDir "<folder>"] [/ext <ext>]
Single or double quotes are accepted around values containing spaces.
| Argument | Description |
|---|---|
| <path> | Positional. Path to the file to analyze. Required as the first non-switch argument. Supports the token %ap%, which expands to SysAnalyzer's home directory. |
| /autostart | Skip the wizard's manual Start step. Snapshot 1, target launch, and countdown begin immediately on wizard load. Combined with /delay this gives a fully unattended run. |
| /delay <n> | Override the saved analysis delay. n in seconds. Default 30. |
| /args "<str>" | Arguments to pass to the target. For shell-handled extensions (PDF, DOC, HTML, JS…) the target should be the handler app and /args the file path. |
| /outDir "<folder>" | Override the analysis output folder. Default is [Desktop]\analysis. |
| /ext <ext> | Override the log-file extension. Default .log. Useful when feeding output to a tool that wants a specific extension. |
cfg.dat), then invoke with /autostart./autostart is set but the sample path does not exist, SysAnalyzer aborts with a usage box.sysanalyzer.exe "C:\samples\sample.exe"
Wizard appears with the path filled in. User clicks Start.
sysanalyzer.exe "C:\samples\sample.exe" /autostart /delay 60
sysanalyzer.exe "C:\samples\stage1.exe" /args "-c config.dat" /autostart
sysanalyzer.exe "C:\Program Files\Microsoft Office\winword.exe" /args "C:\samples\macro.docm" /autostart /delay 90
sysanalyzer.exe "C:\samples\sample.exe" /autostart /outDir "D:\analyses\sample-001"
foreach ($f in Get-ChildItem D:\samples\*.exe) {
$out = "D:\out\" + $f.BaseName
Start-Process -Wait sysanalyzer.exe -ArgumentList @(
"`"$($f.FullName)`"",
"/autostart",
"/delay", "45",
"/outDir", "`"$out`""
)
}
Dropping a file on the SysAnalyzer desktop shortcut is equivalent to passing the file as the first argument. No switches can be supplied this way; configure them in the GUI first.