
OfficeC2RClient.exe get progress state

Hello,
I would like to implement Office updates into our scheduled maintenance automation. Therefore, using OfficeC2RClient.exe and a CMD should be a convenient way to achieve this. I'm using the following parameters:
"C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update user displaylevel=false forceappshutdown=true
Unfortunately, OfficeC2RClient works asynchron and delivers no state at all. It's just fire and forget. But for monitoring and reporting purposes we need to track the progress and get a final state (success, error, anything else). I've already tried a couple of different things:
- Start as process in PowerShell and check if "OfficeC2RClient.exe" is running
- Check logfiles in Temp directory
Both approaches are not optimal and have some downsides.
Do you have any idea, how to achieve this in the most simple and consistent way?
Microsoft 365 and Office | Development | Other
