VSDiagnostics.exe

Command-line tool used for performing diagnostics.

Paths

  • C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\DiagnosticsHub\Collector\VSDiagnostics.exe

Commands

Execute

Starts a collection session with sessionID 1 and calls kernelbase.CreateProcessW to launch specified executable.

Use case: Proxy execution of binary

Privileges: User

VSDiagnostics.exe start 1 /launch:{PATH:.exe}

Execute

Starts a collection session with sessionID 2 and calls kernelbase.CreateProcessW to launch specified executable. Arguments specified in launchArgs are passed to CreateProcessW.

Use case: Proxy execution of binary with arguments

Privileges: User

VSDiagnostics.exe start 2 /launch:{PATH:.exe} /launchArgs:"{CMD:args}"

Detection

Resources