Setup.exe Configure. Configuration-office2021enterprise.xml May 2026
The command setup.exe /configure configuration-office2021enterprise.xml is used to deploy Microsoft Office LTSC 2021 (Long Term Service Channel) to enterprise client computers. This method utilizes the Office Deployment Tool (ODT), a command-line utility that allows IT administrators to customize and control installations that aren't possible through standard installers. Core Components
setup.exe: The executable file for the Office Deployment Tool. It does not contain Office files itself but acts as the engine to download or install them.
configuration-Office2021Enterprise.xml: A sample XML file provided with the ODT specifically for Office 2021 Enterprise (Volume License) products. This file contains the "instructions" for the setup, such as which apps to install (e.g., Word, Excel) and which language to use. How to Use the Configure Command To install Office using these files, follow these steps: Deploy Office Long Term Service Channel (LTSC) 2021
Here’s a helpful write-up on using setup.exe with a configuration XML file to deploy Microsoft Office 2021 Enterprise.
Expected behavior:
- No visible progress (unless you change
Display Level="Full"for testing). - The installer runs in the background.
- Completion time: 10–20 minutes depending on network speed and machine performance.
- Exit codes:
0= Success3010= Success, reboot pending- Other codes = Failure (check logs)
To verify installation, search for “Word” or run: setup.exe configure. configuration-office2021enterprise.xml
Get-AppxPackage *Microsoft.Office*
# Or check classic COM objects: New-Object -ComObject Excel.Application
C. Excluding Specific Apps (Granular)
<ExcludeApp ID="Access" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Outlook" />
Excluding Outlook can speed deployment and is common in RDS or shared machines.
Method B: Direct Install (No Local Source)
If you want to install immediately and do not care about saving the installation files locally:
- Edit your XML to remove the
SourcePathattribute or ensure it is empty. - Run only the configure command. The tool will stream the installation files from Microsoft CDN and install them simultaneously.
setup.exe /configure configuration-office2021enterprise.xml
Deep paper — Deploying Office 2021 Enterprise with setup.exe and configuration.xml
Summary of Commands
| Action | Command Syntax |
| :--- | :--- |
| Download Files | setup.exe /download configuration-office2021enterprise.xml |
| Install Office | setup.exe /configure configuration-office2021enterprise.xml |
| Modify XML | notepad configuration-office2021enterprise.xml |
| Packager (Admin) | setup.exe /packager configuration-office2021enterprise.xml "C:\OutputPath" |
To install Microsoft Office 2021 Enterprise (LTSC) Office Deployment Tool (ODT) and your specific configuration file, follow these steps: 1. Prepare the Environment Download the ODT : Get the latest Office Deployment Tool from the official Microsoft Download Center. Extract Files : Run the downloaded to extract and sample XML files into a dedicated folder, such as Place Your XML : Save your configuration-office2021enterprise.xml into that same folder. Microsoft Learn 2. Verify XML Content The command setup
Ensure your XML file contains the correct Product ID for Office 2021 Enterprise (LTSC). A standard configuration looks like this: Configuration OfficeClientEdition "PerpetualVL2021" "ProPlus2021Volume" AcceptEULA Configuration Use code with caution. Copied to clipboard 3. Run the Commands Command Prompt Administrator
. Navigate to your folder and run these two commands in order: Microsoft Learn Solved: Install Microsoft LTSC Standard 2021
Complete Guide to Deploying Office 2021 Enterprise via ODT The command setup.exe /configure configuration-office2021enterprise.xml is the primary method for IT administrators to deploy Microsoft Office LTSC Professional Plus 2021 across multiple machines using the Office Deployment Tool (ODT) . This approach allows for a highly customized, automated installation that skips unwanted applications and pre-configures licensing. 1. Download the Office Deployment Tool (ODT)
First, you must acquire the official Office Deployment Tool from the Microsoft Download Center. Expected behavior:
Run the self-extracting executable (officedeploymenttool.exe).
Extract the contents (including setup.exe and sample XML files) into a dedicated folder, such as C:\Office2021. 2. Create the Configuration XML File Configuration options for the Office Deployment Tool
A. Local Source Installation
Download the installation files once and share them to reduce network load.
First, create a download.xml:
<Configuration>
<Add SourcePath="\\server\share\Office2021" OfficeClientEdition="64" Channel="PerpetualVL2021">
<Product ID="ProPlus2021Volume">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>
Then run:
setup.exe /download download.xml
Finally, reference that same SourcePath in your configure XML.
⚠️ Common issues to check:
- PIDKEY required for volume license activation (replace with real key or use KMS/ADBA).
- ODT version must support Office 2021 – download latest from Microsoft.
- Channel mismatch: For retail Microsoft 365 Apps, use
Current; for Enterprise LTSC 2021, usePerpetualVL2021. - Architecture mismatch – ensure
OfficeClientEdition="64"matches Windows OS and existing Office.