Before You Start
The modern Microsoft Office suite is now only available as a âClick-to-Runâ installation, which changes how the installation package is obtained, configured and deployed.
These are the resources weâll be using in this guide.
- Download the Office Deployment Tool (ODT) from Microsoft here
- Download Microsoft Office ADMX files for Group Policy
- Microsoft 365 Apps admin center
Creating a Config File
Configuration of the Office suite is now done via an XML file. You can generate one by using the Microsoft 365 Apps admin center. Simply go to the site and click on the âCreate a new configurationâ button.
- Under âProducts and releasesâ choose what architecture and Office Suite you require, how often you want Office to update - I recommend the âMonthly Enterprise Channelâ, and which apps to include or exclude.
- For âLanguageâ either choose specific languages or âMatch Operating Systemâ.
- Under âInstallation optionsâ you should choose âLocal sourceâ and enter the âSource pathâ of:
Z:\Applications\[Your-Office-Install]
as this will be where the files are stored in MDT.Z:\
is automatically mapped to%deployroot%
during an MDT Task Sequence. - For the âUpdate and upgradeâ options this will depend on whether you plan on Office updating from the internet on the systems once it is deployed, or if you want to have a central Office update on the local network (maybe using my Office Update Utility), or if you are using Config Manager.
- For the Upgrade options, these can be disabled as we will be installing office as part of a clean build of Windows.
- Under âLicensing and activationâ you will need to set âAutomatically accept the EULAâ to enabled, set any product keys if required and choose what type of activation you need.
- For âGeneralâ provide your Company name and a description for this config file. I tend to use a brief list of the config choices for future reference.
- Under âApplication preferencesâ you can set any specific preferences that you require.
- When you are happy with your config file, click âExportâ and you will be prompted to choose the âDefault File Formatâ. I generally choose the âOffice Open XML formatsâ.
- Finally, accept the terms in the license agreement, enter a file name and download the file.
Downloading the Office installation files
- First download and extract the Office Deploy Tool (ODT) from Microsoft to a new folder. The included example XML files can be deleted.
- Put your XML config file in the same folder as the Office Deploy Tool.
- Make a copy of your XML config file and edit one of them.
- Edit the âSourcePathâ near the top of the file to point to a location on your local drive, for example:
SourcePath="C:\Users\sysadmin\Downloads\ODT"
and then save it. - Open a command prompt and change directory to the folder that contains the Office Deploy Tool and your config XML file.
- Run the following command to download the Office files:
setup.exe /download [your-edited-config.xml]
- A new folder called âOfficeâ will be created and the installation files will be stored there.
Importing the Office installation files into MDT
- Copy the entire folder containing the Office Deploy Tool, your config files and the Office folder to your MDT Applications folder.
- Rename the folder so it matches what you entered for the Source path when you created the config file on the Microsoft 365 Apps admin center website.
- Go to the MDT Deployment Workbench and open âApplicationsâ.
- Right-click on âApplicationsâ and click âNew Applicationâ.
- Choose âApplication without source files or elsewhere on the networkâ and click Next.
- Enter an Application name and click Next.
- For the âCommand line:â enter the following:
setup.exe /configure [your-config.xml]
- For the âWorking directory:â enter the following:
.\Applications\[Your-Office-Install]
and then click Next. - Finally on the summary screen click Next and then Finish.
After importing the installation files you will now be able to install Office as part of a Windows deployment Task Sequence like any other application.
Group Policy ADMX Files for Office
The ADMX files for Office are backwards compatible with previous versions of Office back to Office 2016 and they can be downloaded here.
Support My Work
If you would like to support me, please check out the link below.
If you have any questions or comments, please leave them below.
-Mike