The Office Deployment Tool (ODT) has been around for many years now, although you may be unfamiliar with how it works and the tasks you can accomplish using it. In this article, I will focus on the uses of the ODT and the XML file itself rather than where it fits into a wider deployment process.

I work for a managed service provider (MSP), and we have a varied client base. The availability of many customization options is really quite useful as it speeds up the deployment of devices.

Download the Office Deployment Tool

Let's assume I have been handed a new laptop to set up for a client, straight out of the box.

First, download the ODT.

Once extracted, you will see a setup.exe file and some example XML files.

Files extracted from the ODT

Files extracted from the ODT

ODT configuration file

Let's take a look at the example files. Open up configuration-Office365-64.xml

The file contains a <configuration> section. Inside this section, there is an <add> section.

XML file section in the ODT configuration file

XML file section in the ODT configuration file

The ODT reads the XML file and performs the actions in <add>. In this case, it is adding Office Client Edition x64. Inside the <add> section, there is a <product> section. You can have multiple product sections; this example file adds both 365 Pro Plus and Visio.

Adding a product section

Adding a product section

If we look in the Office 2021 Enterprise XML file, we can see that we are installing Office 2021 Volume license edition, as well as Project and Visio.

We can also see a <remove> tag. This tells the ODT to remove any other Office program or version it finds installed.

The Remove section

The Remove section

As I mentioned, I work for an MSP, and we have clients who use various versions of Office: Volume License, Pro Plus, and Business Retail. All of these configurations can be created in an XML file and saved separately for use when building a machine. For most, though, a general config will be sufficient. You may want to customize the example files, though. As you can see here, the Office x64 XML we looked at originally will deploy Skype for Business and OneDrive for Business.

Deploying Skype for Business

Deploying Skype for Business

Deploying OneDrive for Business

Deploying OneDrive for Business

In the example below, we are installing Business Retail x64 on the semiannual update channel. We are excluding Groove (OneDrive for Business) and Lync (Skype for Business), pre-accepting the EULA, and setting the Office XML defaults in Word, Excel, and PowerPoint so that users are not prompted to choose.

Custom XML to exclude Groove and Lync

Custom XML to exclude Groove and Lync

Below is an example of a client that uses Volume Licensing and requires the French language to be available in Office. We can deploy the key to save the user needing to enter the key to activate Office.

Custom XML with language and PIDKey

Custom XML with language and PIDKey

In this example, we specified a local folder. The clients spend a lot of time in low-bandwidth environments, and it is useful to keep the setup files locally on the device.

Custom source path

Custom source path

There is a detailed document on the options available for use with the ODT here.

There is, however, an even better option. Enter the Office Configuration website. There is a wizard-based tool that takes you through each section of the XML file, and lets you export a perfectly formatted file at the end with all the options you could possibly require.

Office config wizard

Office config wizard

See if you can decipher what options I have set.

Which options did we enable in our custom XML file_

Which options did we enable in our custom XML file_

Deploying Office with the ODT

Once you have your XML file, there are two commands you need to know to deploy Office.

setup.exe /download <configuration file>
setup.exe /configure <configuration file>

Download option

The download mode of the ODT will download the files required for the relevant programs in the <add> section of your XML file. If you have not specified a path in the XML file, it will download to the folder from which you run the tool. The download option does not show any progress.

It may be useful to use this option to download the files to a network share and use that as a local source. It could also be useful if you want to download and keep a specific version of Office that may no longer be available from the Office Content Delivery Network.

Configure option

Using the configure switch will tell the ODT to download, install, and configure the products specified in the XML file. If you have specified a source location, it will look there for the installation files.

Subscribe to 4sysops newsletter!

ODT download method

ODT download method

ODT configuration method

ODT configuration method

Are you using the Office Deployment Tool in your organization to deploy Office? Please share your experiences with Microsoft's ODT in a comment below.

avatar
0 Comments

Leave a reply

Your email address will not be published.

*

© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account