OfficeC2RClient.exe get progress state

Kevin Schweiger 41 Reputation points
2023-05-31T07:32:09.7733333+00:00

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?

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,626 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,891 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.