RealityCapture CLI with "-silent" parameter

Hello!
for a project i need to run reality capture on a server using CLI without UI. This means i need to run it with the “-silent” parameter, for example: to activate my enterprise license.
However, the “-silent” flag has the side effect, that reality capture runs the command in the background without passing any log or error information along.

My problem is, that reality capture exits the command instantly when “-silent” flag is added. It exits with the exit code “-2147024809”.

Example Script:

$rc_process = Start-Process "RealityCapture.exe" -ArgumentList '-activate','<licenseToken>','-quit','-silent' -PassThru

Wait-Process $rc_process.Id
Write-Host "ProcessId: " $rc_process.Id
Write-Host "StartTime: " $rc_process.startTime
Write-Host "ExitTime: " $rc_process.exitTime
Write-Host "ExitCode: " $rc_process.exitCode

image

When running the command without the “-silent” flag everything works as expected and RC opens up, activates the license, closes and exits with code 0 after the RC window closes.

image

Is there any way to debug this or does there exist another way to achieve my desired behavior?

1 Like

For anyone else running into this issue: The “-silent” parameter requires at least 1 argument (should be a path to the crash report folder)
eg: Start-Process "RealityCapture.exe" -ArgumentList '-activate','<licenseToken>','-quit','-silent C:\\CrashReportFolder'