Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Update Office 365 via pdq

Morning, everyone,

In my environment, I use pdq to upgrade applications on the workstations.

Office 365 is one of them.

I created a package to install o365 from scratch.
This one works.

But not to upgrade, I looked on the net, it seems that in the configuration file.xml, you have to add a parameter forceshutdownapp = True

But with no success on my side.

I haven't found a similar solution to my problem.
Are you in the same situation as me?


the only method I have is to uninstall and reinstall M365.

Do you have any ideas?

Thank you very much. Thank you very much.



Date Votes
  • you can run this command from PDQ to force Office 365 updates but it could be Run only "Run as Logged on User"


    cd C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe /update user updatepromptuser=true forceappshutdown=true displaylevel=true

  • How do you update Office 365 with PDQ? Don't, the office updater does it better.

    While you could install a new version over the top, it takes longer than a regular update, you have to account for error conditions, you have to ensure office programs are closed or that the config closes them, etc...

    So, if you configured it to get updates from the cdn, updates should come down automatically. If you configured it to get updates from a local source, just run the below occasionally, to update the source with whatever is specific in the config. The office updater will then pick up from the source.

    .\setup.exe /download .\configuration.xml

    If you find updates are not installing, take a look at the registry on the affected machines and look out for

    • HKLM\Software\Microsoft\Office\ClickToRun\Configuration\UpdateToVersion (this correlates to TargetVersion in the config). The office updater will never update to a version newer than this setting.
    • HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Updates\UpdateDetectionLastRunTime. I couldn't find much documentation it, but depending on the value office may not pick up updates immediately (I suspect it's meant to prevent all computers from getting updates at the same time and blowing up your network). To test if it's the cause, you can just delete it on a machine, and trigger the scheduled task office uses to check for updates. Depending on your network, avoid clearing it on all machines at once.

    As Loshniv mentioned you could force it (though it will still get blocked under some conditions like UpdateToVersion). But it's probably better to figure out why updates are not working.