Office 365 updates
MOC: Powershell
Force a C2RClient Update
Microsoft office initiates most updates through the OfficeC2RClient.exe file located in the shared folder. It can be run directly with the flag /update user to force the client to update.
"%ProgramFiles%\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe" /update userEnable 365 AutoUpdate
It is possible to set a registry key to dictate that updates should be enabled.
Note that this script also includes a snippet that triggers an update through ClickToRunSvc.
$cfg = 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration'
New-Item -Path $cfg -Force | Out-Null
New-ItemProperty -Path $cfg -Name UpdatesEnabled -Value 'True' -PropertyType String -Force | Out-Null
Remove-ItemProperty -Path $cfg -Name UpdateToVersion -ErrorAction SilentlyContinue
# Make sure the service can update, then trigger a scan
sc.exe config ClickToRunSvc start= auto | Out-Null
Start-Service ClickToRunSvc -ErrorAction SilentlyContinue
---
*Fleeting note - to process into a permanent note or delete within a week.*