How To Trigger an Update to Microsoft Office O365 From The Command Line

O365 Update:

"C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update user

Silent:

"C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeC2RClient.exe" /update user displaylevel=false forceappshutdown=true

Update a List of Machines Using PSTOOLS:


psexec @computers.txt -d -n 3 cmd /c “C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe” /update user updatepromptuser=false forceappshutdown=true displaylevel=false

text file named computers.txt contains a list of computer names to update
(with 3 seconds timeout)


Source credits: