Skip to main content

Install Office 365 using the Office Deployment Tool with Intune - Windows app (Win32)


Overview

Microsoft 365 apps are installed using the Office Deployment Tool (ODT) along with a configuration XML file with the Office installation options you want to use.

You can create an XML configuration file using the Office Customization Tool

Office is installed by running setup.exe from the ODT along with the XML configuration filesetup.exe /configure Configuration.xml

You can deploy MS Office with Intune by creating an Intune app package containing setup.exe and the XML configuration file

1. Download Office Deployment Tool (ODT)

Download the Office Deployment Tool and extract to C:\Temp\ODT
https://www.microsoft.com/en-us/download/details.aspx?id=49117

Create a new folder for the Office install files C:\Temp\MS Office
Copy setup.exe from the Office deployment tool C:\Temp\ODT\setup.exe into the C:\Temp\MS Office folder

2. Create XML configuration file

You can create a configuration XML file for installing Microsoft Office using the Office Customization Tool https://config.office.com

Here are some example configurations you can use:

In both of these examples, Teams machine-wide has been removed because Microsoft are now rolling out New Teams

Example: Install Microsoft 365 Apps for Enterprise

Install: OneDrive Desktop, Outlook, Excel, OneNote, PowerPoint, Word
Exclude: Access, OneDrive (Groove), Publisher, Skype for Business, Teams

Option Notes
OfficeClientEdition="64" 64-bit MS Office
Channel="SemiAnnual" Semi-annual Enterprise update channel
Product ID="O365ProPlusRetail" Install Microsoft 365 Apps for Enterprise
Language ID="en-us" English US language
ExcludeApp ID="Bing" Do not install Microsoft search in Bing
Updates Enabled="TRUE" Enable automatic updates
Display Level="None" Silent install
AcceptEULA="TRUE" Automatically accept the license agreement

Configuration.xml

<Configuration>
 <Add OfficeClientEdition="64" Channel="SemiAnnual">
 <Product ID="O365ProPlusRetail">
 <Language ID="en-us" />
 <ExcludeApp ID="Access" />
 <ExcludeApp ID="Groove" />
 <ExcludeApp ID="Publisher" />
 <ExcludeApp ID="Lync" />
 <ExcludeApp ID="Teams" />
 <ExcludeApp ID="Bing" />
 </Product>
 </Add>
 <Updates Enabled="TRUE" />
 <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

Example: Install Microsoft 365 Apps for Business

Install: OneDrive Desktop, Outlook, Excel, OneNote, PowerPoint, Word
Exclude: Access, OneDrive (Groove), Publisher, Teams

Option Notes
OfficeClientEdition="64" 64-bit MS Office
Channel="SemiAnnual" Semi-annual Enterprise update channel
Product ID="O365BusinessRetail" Install Microsoft 365 Apps for Business
Language ID="MatchOS" Match the Operating System language
Updates Enabled="TRUE" Enable automatic updates
Display Level="None" Silent install
AcceptEULA="TRUE" Automatically accept the license agreement

Configuration.xml

<Configuration>
<Add OfficeClientEdition="64" Channel="SemiAnnual">
<Product ID="O365BusinessRetail">
<Language ID="MatchOS" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Teams" />
</Product>
</Add>
<Updates Enabled="TRUE" />
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>

Remove Office 365 using Uninstall.xml

Office can be uninstalled using the following XML configuration file:

Uninstall.xml

<Configuration> 
<Remove All="TRUE">
<Product ID="O365BusinessRetail">
 <Language ID="en-us" /> 
 </Product> 
 </Remove>
</Configuration>

3. Office install and uninstall commands

install.cmd
setup.exe /configure Configuration.xml
 
uninstall.cmd
setup.exe /configure Uninstall.xml

4. Create Intune app package

Create an Intune package using the Microsoft Win32 Content Prep Tool

Download Microsoft Win32 Content Prep Tool

Download the Microsoft Win32 Content Prep Tool and extract to C:\Temp
https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool

Folder to be packaged

Create a folder for the Application e.g. C:\Temp\MS Office
Copy these files into the folder to be packaged

Configuration.xml
install.cmd
setup.exe
uninstall.cmd
Uninstall.xml

folder to package

IntuneWinAppUtil options

-c setup folder containing the files that will be packaged into an .intunewin file
-s setup file e.g. install.cmd
-o output folder for the .intunewin file

Create Win32 app package using IntuneWinAppUtil.exe

You will be prompted to create the output folder if it doesn’t exist

Open Command Prompt (run as Administrator)

cd C:\Temp\Microsoft-Win32-Content-Prep-Tool-master
 
IntuneWinAppUtil.exe -c "C:\Temp\MS Office" -s "C:\Temp\MS Office\install.cmd" -o "C:\Temp\MS Office-Intune"

5. Install MS Office using Intune

Intune admin center
Apps - Windows - Add

App type: Windows app (Win32)
Select app package file: install.intunewin

Name: Microsoft 365 Apps for Business
Description: Microsoft 365 Apps for Business

Publisher: Microsoft
Version: 16.0.17425.20176

Install command: install.cmd
Uninstall command: uninstall.cmd
Install behavior: System
Device restart behavior: No specific action

ms office windows app

Detection rule

Rule type: Registry
Key path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration
Value name: ClientVersionToReport
Detection method: Version comparison
Operator: Greater than or equal to
Value: 16.0.17425.20176 

detection rule

 

Reference:
Configuration options for the Office Deployment Tool
https://learn.microsoft.com/en-us/deployoffice/office-deployment-tool-configuration-options  

 

 

 


Filter articles by tag