Remove pre installed Office or alter existing installation
More and more devices come with a version of Office 365 pre installed on the device. This is a nightmare for IT admins because the deployment of Office 365 from Intune:
A: Will not override installation parameters. For example if you deselected some Office Suite Applications like Access, it won't be uninstalled.
B: Cannot be uninstalled via a simple way. You always need a script to get rid of that pre installed version.
In my opinion there are two posibilities... 1. Stop pre installing office or 2. make it easy to alter or uninstall pre intstalled office versions using Intune.
If you need to remove an OEM pre-install of Office 365, it can be done as part of the M365 Apps deployment by using an XML to configure which apps you don't want, with a remove section:
<Product ID="O365HomePremRetail" />
<Add OfficeClientEdition="64" Channel="MonthlyEnterprise" ForceUpgrade="TRUE">
<Language ID="MatchOS" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="OneNote" />
<ExcludeApp ID="Teams" />
<Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
<Updates Enabled="TRUE" />
<Display Level="None" AcceptEULA="TRUE" />
<Logging Level="Off" />
Simon Nicotra commented
Any update on this MS? this is causing endless issues with Autopilot deployments with brand new out of the box devices, this is such basic functionality !!!!
Kyle Townend commented
Yep this really is awful. Some OEMs are getting onboard now with "Autopilot Ready" images with zero pre-installations but Microsoft are leading the charge on bad decisions by loading Surface devices with Office... Really need a robust fix for this.
Sander Prinsen commented
Running into this issue more and more with customers. Some have Office 2019 (not O365) license and new devices come with preinstalled O365... Also some customers want Office with a different architecture than preinstalled (32bit vs 64bit). If only you could setup a dependency for the Office installation from Intune, then I could run the scrub-script first, but that is currently not possible.
Stefan Farnik commented
Of course there is this option to `remove other versions' which isn't honored during Autopilot installation.
And there is no possiblity to create an application which executes Office Scrub and define it as an dependency for Office, because Office application type doesn't have the option for dependencies.
Ido Abramson commented
Any update for this issue?
Surface devices don't get their pre installed Office replaced with Office 365 Pro Plus and it a major problem for us.
Duane Gammill commented
I also need a way to gracefully remove pre-installed Office desktop apps, including Access.
Could you tell me the steps of how you have done the process to be able to uninstall the office and install the new one with Intune?I have the same problem.Thank you.
Yep, horrific planning. I ended up creating a vanilla build using Windows Configuration Designer
Because new surface devices come pre-installed with business edition, this has completely broke autopilot deployments that wish to deploy ProPlus. We need an option to remove existing versions of MSI AND C2R Office.
Rob de Roos commented
@Jelle, the problem here is that the previous install isn't a msi install but a click to run install. That won't be installed by the click to run installer. It should alter the install from business to pro plus, but that won't work either.... it keeps telling you there isn't a license available.
So yes that option is there but it doesn't work if a click to run variant is installed.
Believe me I tried.
Another thing is that you cannot alter the installation. In this case the customer didn't want Access to be available on the device.
The only way is to uninstall it with a cleanup script and reinstall it using the build in functionality of intune.
If you're deploying Office 365 from intune you have an option "Remove other versions of Office (MSI) from end user devices. (help link leads to this doc: https://docs.microsoft.com/nl-be/DeployOffice/configuration-options-for-the-office-2016-deployment-tool) from the Microsoft Office 365 Properties -> App Suite Settings -> Remove...
And even if you're rolling out Office 2019 use https://config.office.com and you will see "Remove MSI products is On" under "Update and upgrade options"
No script needed.