Flamingo Raises $4.5M Seed Round

Skip to content

Office Deployment Tool: install Microsoft 365 apps with one XML file

Technology
IT Operations
Technical Education
Aliaska VarievaAliaska Varieva
October 15, 2026
443 views
Office Deployment Tool: install Microsoft 365 apps with one XML file

How to use the Office Deployment Tool: download the current build, build configuration.xml in the Office Customization Tool, run setup.exe /download and /configure, pick an update channel after the 2026 Semi-Annual change, remove old Office, set up shared computer activation, read logs and exit codes, and deploy with Intune, Configuration Manager or an RMM script.


Updated: November 2026

Installing Microsoft 365 Apps by hand works for one laptop and eats an afternoon by the tenth. Every machine should end up with the same apps, languages and update channel, and nobody should have to click Next. This guide shows how the Office Deployment Tool does that with one setup.exe and one XML file, from first download to fleet-wide push.

TL;DR

  • What it is. The Office Deployment Tool (ODT) is Microsoft's free command-line installer for Microsoft 365 Apps: setup.exe plus a configuration.xml.
  • Current build. 16.0.20430.20146, published October 19, 2026.
  • The XML. Build it in the Office Customization Tool, which writes the file for you.
  • The commands. setup.exe /download stages files, and setup.exe /configure installs, changes or removes Office.
  • The channel. Semi-Annual Enterprise follows Monthly Enterprise since July 2026, so choose Current or Monthly Enterprise.
  • At scale. Intune, Configuration Manager and RMM scripts run the same XML. The free Basic Mobility and Security MDM in Microsoft 365 can't deploy apps.

What is the Office Deployment Tool?

The Office Deployment Tool is a free command-line tool from Microsoft that downloads and installs Click-to-Run Office. It covers Microsoft 365 Apps for enterprise and for business, the subscription Visio and Project apps, and volume-licensed Office LTSC 2024. Microsoft's ODT overview frames it as control: which products and languages go on, how they update, and whether users see the install.

The tool is two files. setup.exe is the engine and never changes between deployments. configuration.xml is the recipe: products, languages, channel, install source, display and licensing. You edit the recipe, then run the engine in one of its modes.

Download mode stages installation files in a folder. Configure mode installs, changes or removes Office. Customize mode applies app preferences to an existing install and nothing else. A help mode rounds it out. Older guides also show /packager for App-V packages, which Microsoft's current overview no longer documents.

One naming note: to admins, ODT means the Office Deployment Tool. The same letters are also the .odt extension of OpenDocument Text files, which have nothing to do with deployment.

How to download the Office Deployment Tool

The ODT ships as a self-extracting file on its Microsoft Download Center page (details ID 49117). As of November 2026, the current build is 16.0.20430.20146, published October 19, 2026, a 3.1 MB file. Run it and pick a folder for setup.exe and the sample configuration files, or skip the prompts:

cmd
officedeploymenttool_20430-20146.exe /quiet /extract:C:\ODT

winget has it too. The community-maintained winget manifest points at Microsoft's download, tracks the same build and extracts to C:\Program Files\OfficeDeploymentTool:

cmd
winget install --id Microsoft.OfficeDeploymentTool

Use the newest build either way. Microsoft recommends checking before every download or install, and newer options depend on it: the TenantAssociationKey property needs version 16.0.19929.20062 or later. To check a copy, open setup.exe's Properties and look at the Details tab.

If the Download Center link fails, you're in good company. r/sysadmin traded workarounds when it returned 404s in March 2025:

Build configuration.xml in the office customization tool

You can write configuration.xml in Notepad, but Microsoft recommends the Office Customization Tool (OCT) instead. It's a free web form at config.office.com/deploymentsettings that writes the XML for you. Don't confuse it with the older OCT for MSI-based Office.

Sign in first if you want the file saved to your tenant, on the Device Configuration page of the Microsoft 365 Apps admin center. That's handy for a baseline you copy per department. Cloud storage isn't offered in 21Vianet, GCC, GCC High or DoD tenants.

The form runs top to bottom, and each section writes one part of the file:

  1. Products and releases. Architecture (one per file), products, update channel and version. Leave the version on latest unless you need to pin one.
  2. Language. One or more languages, or Match operating system.
  3. Installation. Office CDN or a local source, whether users see the install, and whether running apps get shut down.
  4. Update and upgrade. Where updates come from, whether to remove MSI versions of Office, and whether to switch an existing install's architecture.
  5. Licensing and activation. Accept the license terms and pick user based, shared computer or device based activation. Volume-licensed products take a KMS or MAK key here.
  6. General and Application preferences. A description for the file, plus app settings such as macro warnings and default file formats.

Select Finish, check the summary, then Export. Import reopens an existing file for edits.

One trap: the OCT lets you pick languages that Visio and Project don't support, such as English (United Kingdom), French (Canada) or Spanish (Mexico). Microsoft lists it as a known issue, and the install fails unless you fix the XML by hand. Proofing-tools-only installs and MatchInstalled aren't in the OCT at all, so those still need a text editor.

How to run the Office Deployment Tool

Open an elevated Command Prompt in the ODT folder. Every mode takes an XML file:

cmd
setup.exe /download configuration.xml
setup.exe /configure configuration.xml
setup.exe /customize preferences.xml

Download mode saves files to the SourcePath in your XML, or next to setup.exe if there's none. Run it against a folder that already holds that build and it fetches only what's missing, such as one new language pack.

Configure mode needs local admin rights on the target. Run it on the client or from a share. With a share, pass full UNC paths for both setup.exe and the XML:

cmd
\\server\share\Microsoft365Apps\setup.exe /configure \\server\share\Microsoft365Apps\configuration-cc.xml

A good run ends with "Products configured successfully." Customize mode ignores everything except app preferences and must run on the client. Its settings reach every current and future user of the device, and open apps pick them up at their next restart.

Wes Bryan's walkthrough runs an OCT-built file through ODT and checks the result, logs included:

A working configuration.xml, line by line

Here's a complete file for a small office on Microsoft 365 Business Premium. It installs 64-bit Office on Monthly Enterprise Channel, in English plus the operating system's languages. Skype for Business stays out, the install is silent, and old MSI Office goes first.

xml
<Configuration>
  <Add OfficeClientEdition="64" Channel="MonthlyEnterprise">
    <Product ID="O365BusinessRetail">
      <Language ID="en-us" />
      <Language ID="MatchOS" />
      <ExcludeApp ID="Lync" />
    </Product>
  </Add>
  <Updates Enabled="TRUE" />
  <RemoveMSI />
  <Display Level="None" AcceptEULA="TRUE" />
  <Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
</Configuration>

Add holds the what. Leave OfficeClientEdition out on a clean machine and ODT picks 64-bit, unless Windows is 32-bit or the device has under 4 GB of RAM. On a machine that already runs Office, the value must match the installed architecture or the install fails. Channel works the same way: Current on a clean machine, the existing channel otherwise. Without SourcePath, ODT looks next to setup.exe, then goes to the Office CDN.

The Product ID has to match the license, or Office won't activate. Microsoft's product ID list maps plans to IDs, and these come up most:

PlanProduct ID
Microsoft 365 Business Standard or Business PremiumO365BusinessRetail
Microsoft 365 Apps for businessO365BusinessEEANoTeamsRetail
Microsoft 365 E3 or E5, Office 365 E3 or E5O365ProPlusRetail
Microsoft 365 Apps for enterpriseO365ProPlusEEANoTeamsRetail
Visio Plan 2VisioProRetail
Planner and Project Plan 3 or 5ProjectProRetail
Office LTSC Professional Plus 2024ProPlus2024Volume

Office LTSC 2024 also needs Channel="PerpetualVL2024" and a PIDKEY attribute on the Product line, holding your KMS or MAK key.

Language sets the languages, and the first one becomes the Shell UI language for shortcuts, right-click menus and tooltips. Changing it later means a reinstall. MatchOS adds the operating system's base language and every active display language. When it's the only entry, add Fallback="en-us" for languages Office doesn't support.

ExcludeApp drops apps. Valid IDs are Access, Excel, Groove, Lync (Skype for Business), OneDrive, OneNote, Outlook, OutlookForWindows (the new Outlook), PowerPoint, Publisher, Teams and Word. Publisher is still a valid ID, but Microsoft retired Publisher in October 2026. It's no longer included in Microsoft 365, and subscribers lost access on or shortly after October 1.

The last lines set behavior. Updates Enabled="TRUE" is the default and pulls updates from the CDN unless you set UpdatePath. Display Level="None" hides all progress and errors, and AcceptEULA="TRUE" skips the license dialog. FORCEAPPSHUTDOWN="TRUE" closes apps that block the install, and Microsoft warns that data loss might occur.

Update channels and how to pick one

The channel decides how often a device gets new features. Microsoft lists three primary channels in its update channels overview, and security updates land on the second Tuesday of each month in all of them.

ChannelNew featuresEach version is supported for
CurrentAt least monthly, no fixed dayUntil the next version, usually about a month
Monthly EnterpriseSecond Tuesday of every monthThree months, with three months of rollback
Semi-Annual EnterpriseJanuary and July until 2026; Monthly Enterprise updates since Version 2606Version 2508 support ended September 8, 2026

That last row changed this year. Starting with Version 2606 in July 2026, Microsoft unified Semi-Annual Enterprise with Monthly Enterprise. Devices set to Semi-Annual now get the same feature and security updates and show as Monthly Enterprise under File, then Account. Channel="SemiAnnual" still works in XML, but it no longer buys a six-month feature freeze. Microsoft puts the first jump, from Version 2508 to 2606, at roughly 1.6 GB.

So the practical choice is Current or Monthly Enterprise. Microsoft's deployment guidance leads with Current and adds a Monthly Enterprise package for users who need a fixed cycle. Monthly Enterprise suits clients who want one predictable update a month. Current suits anyone who wants features and fixes as they ship.

Two more rules. One device runs one channel, so Office, Visio and Project on it must match. And three settings can own the channel. Channel in Add sets it at install, and Channel in Updates changes it later. The Update Channel policy in the Office administrative templates beats both, so if a device keeps snapping back, check Group Policy before the XML.

Install from the office CDN or a local share

Leave SourcePath out and every machine pulls from the Office CDN. Microsoft recommends installing from the cloud with Intune or Configuration Manager, because there's no share to maintain. On Windows 10 and 11, Delivery Optimization helps cut the bandwidth.

A local share makes sense when bandwidth is thin or machines have no internet. Microsoft's local source guide uses one parent folder with a subfolder per channel, such as \\Server\Share\Microsoft365Apps\Current, readable by everyone. Run /download once per channel, then point every client's /configure at the share.

Two settings keep the share useful. AllowCdnFallback="True" fetches any missing language pack from the CDN instead of skipping it. UpdatePath sends updates to the share too, but then someone has to load every new build into it. Each package holds one channel and one architecture. For branch offices, DownloadPath with an explicit Version copies a build from a central share to a local one.

Removing old versions of office

Click-to-Run and MSI versions of Office aren't supported side by side. Some older versions, Office Professional Plus 2016 among them, make the new install fail outright. Add <RemoveMSI /> and ODT first uninstalls 2007 to 2016 MSI versions of Office, Visio and Project, with their language packs and proofing tools. User settings and documents stay, per Microsoft's RemoveMSI guide.

RemoveMSI also takes SharePoint Designer, InfoPath, Lync 2013 or later, standalone Office apps, Access Runtime and the Access Database Engine redistributable. That last one can break line-of-business apps that read Access data. Keep a product by naming its Setup ID, such as VisPro, in IgnoreProduct. Add <Language ID="MatchPreviousMSI" /> to carry the old languages over.

xml
<RemoveMSI>
  <IgnoreProduct ID="VisPro" />
</RemoveMSI>

On r/sysadmin, the case for ODT reinstalls comes with the same habit: script it, remove every other version, install one.

The uninstall needs a reboot that ODT doesn't force, so plan one. RemoveMSI skips Click-to-Run versions such as Office 2019 and Office 2021, which need the Remove element instead. This file removes all Microsoft 365 Apps products and languages, Visio and Project included:

xml
<Configuration>
  <Remove All="TRUE" />
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

Those older versions are past support anyway. Office 2016 and Office 2019 reached end of support on October 14, 2025. Office 2021 and Office LTSC 2021 followed on October 13, 2026, per Microsoft's 2026 end-of-support list, so machines still running them get no security updates.

Removal can fail if Word is open while Display Level is None. FORCEAPPSHUTDOWN gets past that by closing the app, unsaved work and all. Run forced jobs after hours, or set Display Level to Full so users get a prompt.

Shared computer activation for RDS and AVD

Normal activation ties Microsoft 365 Apps to a person's own devices, up to a limit such as five PCs. Shared computer activation covers machines several people sign in to: Remote Desktop Services and Azure Virtual Desktop hosts, shift PCs, meeting rooms. Turn it on in the OCT under Licensing and activation, or add one line:

xml
<Property Name="SharedComputerLicensing" Value="1" />

Each user then gets their own licensing token per machine, stored in %localappdata%\Microsoft\Office\16.0\Licensing. It's valid for 30 days, renews while they work, and doesn't count toward the five-PC limit. Non-persistent VDI can roam it with the SCLCacheOverride properties.

Check licensing before you build the image. Per Microsoft's shared computer activation overview, it works with plans that include Microsoft 365 Apps for enterprise or desktop Visio or Project. It also works with Microsoft 365 Business Premium, the only business plan on the list, so Business Standard doesn't qualify. Unlicensed users land in reduced functionality mode: view and print, no editing.

On an existing install, add a REG_SZ value named SharedComputerLicensing, set to 1, under HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, then reboot. Group Policy works too, except for Microsoft 365 Apps for business. Anyone who activated before the change needs their activation reset.

Microsoft's Azure Virtual Desktop image guide makes choices worth copying for any pooled host: 64-bit, Monthly Enterprise, RemoveMSI, shared activation and Updates Enabled="FALSE". Updates go into the image you redeploy, not onto hosts mid-session. The sample also leaves Teams and OneDrive out of the suite and installs them separately.

Language packs, Visio and project

Adding languages doesn't mean reinstalling Office. Use LanguagePack as the product ID for a new display language, or ProofingTools for spelling and grammar only. ProofingTools is smaller and needs a hand-written file, since the OCT doesn't offer it. Per Microsoft's language deployment guide, a hand-written file reuses the existing architecture and source, so one file fits every group.

Visio and Project work the same way. This file adds Visio in the installed languages, at the installed version, without pulling a newer build:

xml
<Configuration>
  <Add Channel="MonthlyEnterprise" Version="MatchInstalled" AllowCdnFallback="True">
    <Product ID="VisioProRetail">
      <Language ID="MatchInstalled" TargetProduct="All" />
    </Product>
  </Add>
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>

Set Channel to whatever the device already runs, since Version="MatchInstalled" requires it. Two catches: a file containing MatchInstalled can't be used with /download, and Visio and Project don't support English (United Kingdom), French (Canada) or Spanish (Mexico).

Logs and exit codes

ODT logs land in %temp% and C:\Windows\Temp, in files named after the computer plus a timestamp. Installs pushed by Intune, Configuration Manager or an RMM agent typically run as SYSTEM, so start in C:\Windows\Temp. Microsoft's Azure Virtual Desktop sample also sets a Logging element with its own folder, which makes collection easier.

For a stubborn failure, Microsoft's Intune troubleshooting steps turn on verbose logging, reproduce the problem, then turn it off:

cmd
reg add HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v LogLevel /t REG_DWORD /d 3
reg delete HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v LogLevel /f

The exit code often points the way before you open a log. These meanings come from Microsoft's ODT error table:

Exit codeWhat it means
0Success
1603MSI Office is still installed, or a 64-bit install was attempted over 32-bit
17002Canceled by the user or by another installation, out of disk space, or an unknown language ID
17004Unknown product ID
17000 or 17001The Click-to-Run client failed to start or to queue the job
-2147418113 (0x8000ffff)An uninstall ran on a machine with no Click-to-Run Office

On a machine with free disk space and a valid language list, 17002 means another installer or a user canceled the job. Check what else was deploying at the time.

Deploying at scale with Intune, Configuration Manager or an RMM script

The XML is the portable part. Intune, Configuration Manager and an RMM all run the same file, so build it once and keep it versioned.

Deploy Microsoft 365 apps with Intune

In the Intune admin center, go to Apps, All apps, Create, and pick Windows 10 and later under Microsoft 365 Apps. Microsoft's Intune guide then walks through five steps:

  1. App suite information. The suite name and description users see in the Company Portal.
  2. Configure app suite. Use the configuration designer, or set the format to Enter XML data and paste your configuration.xml.
  3. Scope tags. Optional, for limiting which admins see the app.
  4. Assignments. Required installs Office silently, Available for enrolled devices lists it in the Company Portal, and Uninstall removes it.
  5. Review + create.

A few rules decide whether it lands. Microsoft 365 Apps for business can only be configured through XML. Intune delivers one Microsoft 365 Apps deployment per device, and the device downloads the files from the Office CDN. Turn on Remove MSI if any MSI Office is left, or the install fails. Windows Home, Team and Holographic devices aren't supported.

For Autopilot devices tracked on the Enrollment Status Page, Microsoft recommends a Win32 app instead. The Microsoft 365 Apps app type installs outside the Intune Management Extension, so it can collide with a Win32 install and fail enrollment. Package setup.exe and configuration.xml into an .intunewin file with the Microsoft Win32 Content Prep Tool, then use setup.exe /configure configuration.xml as the install command.

Office 365 MDM vs Intune for deploying office

The free MDM that comes with Microsoft 365 business plans won't do this job. Basic Mobility and Security, a subset of Intune included in Business Basic, Business Standard and other subscriptions, manages access to company data, basic device security settings, retire and wipe. Microsoft's Basic Mobility and Security overview lists no app deployment, no Wi-Fi or VPN profiles and no Autopilot, so it can't push Microsoft 365 Apps or your configuration.xml.

Intune does all of that, and it comes with Microsoft 365 Business Premium or as a separate license. Without Intune, Configuration Manager or an RMM script runs the same ODT install. Our Microsoft Intune review weighs Intune against an RMM for MSPs and IT teams.

Configuration Manager

Configuration Manager has its own wizard under Software Library, Overview, Office 365 Client Management, with a built-in version of the OCT. If Configuration Manager will also manage updates, set OfficeMgmtCOM="True" in the Add element. It registers the COM object that update tools need and hides the Update Now button from users.

An RMM script

An RMM agent runs scripts as SYSTEM, which covers ODT's admin requirement. Stage setup.exe and the XML, run configure mode, and report the exit code and newest log:

powershell
$odt = 'C:\ProgramData\ODT'
New-Item -ItemType Directory -Path $odt -Force | Out-Null
# Copy setup.exe and configuration.xml into $odt first (RMM file transfer or a readable share)
$p = Start-Process -FilePath "$odt\setup.exe" -ArgumentList '/configure', "$odt\configuration.xml" -Wait -PassThru -WindowStyle Hidden
"ODT exit code: $($p.ExitCode)"
Get-ChildItem "$env:windir\Temp" -Filter "$env:COMPUTERNAME-*.log" |
  Sort-Object LastWriteTime -Descending | Select-Object -First 1 -ExpandProperty FullName

Our PowerShell commands guide covers the building blocks if scripting is new. Schedule the job after hours when the XML forces app shutdown. OpenFrame can run that script across a client's devices and collect every machine's output in one place. Each 1603 and 17002 then lands in one list.

The short version

The Office Deployment Tool is setup.exe plus one XML file, and the XML holds every decision. Build it in the Office Customization Tool and match the product ID to the license. Pick Current or Monthly Enterprise, since Semi-Annual now follows Monthly Enterprise, and add RemoveMSI wherever old Office might linger. Test on one machine, read the exit code, then hand the same file to Intune, Configuration Manager or your RMM. Our software deployment tools guide is the next read for pushing everything else to a fleet.

Aliaska Varieva

Aliaska Varieva

VP of Engineering

Hi! I’m Aliaska, and I’ve been working as a software engineer (mostly Java + a bit Kotlin) for over 8 years now. I mostly spend my time building backend services, integrating systems, fixing bugs (the fun part 🙃), and making sure things don’t fall apart behind the scenes.

Related Content

Frequently Asked Questions

/blog/office-deployment-tool

Still deciding?

Ask Mingo answers from our docs and customer stories.

Loading related content and questions