<Product ID>:
<Language ID>: The language code (e.g., "en-us", "fr-fr").<Display Level="Full" AcceptEULA="TRUE" />: Prevents the user from seeing installation prompts and automatically accepts the license terms.<Property Name="AUTOACTIVATE" Value="1" />: (Optional) Attempts to auto-activate if you have a KMS server or valid Volume License keys setup in your environment.<RemoveMSI All="True" />: Highly recommended. It removes old MSI-based versions of Office (like Office 2013/2010) before installing 2021 to prevent conflicts.If you don't have a configuration-office2021enterprise.xml file, you can create one using the Office Deployment Tool (ODT). The ODT allows you to download Office 2021 and create a configuration file for your installation.
After creating your configuration file, you can use it with the setup.exe as described above.
This guide should help you configure and install Microsoft Office 2021 Enterprise using a configuration file. If you have specific settings or requirements for your configuration file, ensure they are accurately reflected in your XML file.
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
The command setup.exe /configure configuration-office2021enterprise.xml is used to install or update Microsoft Office LTSC 2021 using the Office Deployment Tool (ODT). This method allows administrators to automate and customize the installation of volume-licensed versions of Office. Core Components
To run this setup, you need two essential files in the same folder:
setup.exe: The core engine of the Office Deployment Tool, which you download and extract from Microsoft.
configuration-office2021enterprise.xml: A text-based XML file that tells the installer exactly what to do (e.g., which languages to install, which apps to exclude, and where to get the source files). Step-by-Step Implementation
Download the ODT: Get the executable from the Microsoft Download Center and extract the files to a local folder (e.g., C:\odt).
Create the XML: You can manually create the configuration-office2021enterprise.xml file or use the Office Customization Tool to generate a custom configuration.
Run Command Prompt as Administrator: Search for cmd in the Start menu, right-click, and select Run as Administrator.
Navigate to your folder: Use the cd command to enter the directory where your files are located: cd C:\odt Use code with caution. Copied to clipboard Execute the Command: Run the configuration string: setup.exe /configure configuration-office2021enterprise.xml Use code with caution. Copied to clipboard
Note: Ensure the filename in the command matches your XML file exactly. If your file is named Configuration.xml, the command must reflect that. Common Commands for the ODT setup.exe /download [xmlfile] setup.exe configure. configuration-office2021enterprise.xml
Downloads the installation files to your local machine for offline setup. setup.exe /configure [xmlfile] Starts the actual installation or modification process. setup.exe /customize [xmlfile] Creates or modifies an existing configuration file. Troubleshooting
Error 0-2054: A general error often caused by existing Office installations or interference from antivirus software. Try restarting your PC or using the Microsoft Support and Recovery Assistant to clear previous versions.
File Path Issues: Ensure setup.exe and the .xml file are in the same directory. If the command fails, double-check that you are using forward slashes / and not backslashes \ for the switches. Deploy Office Long Term Service Channel (LTSC) 2021
This command is the standard way to install or configure Microsoft Office LTSC 2021 Enterprise Microsoft Office Deployment Tool (ODT) . It tells the deployment executable (
) to execute a configuration task based on the settings defined in a specific XML file. Microsoft Learn Breakdown of the Command : The executable file for the Office Deployment Tool. /configure
: The switch that tells the tool to perform an installation or configuration based on the provided XML. configuration-Office2021Enterprise.xml
: A configuration file that specifies which products to install, the architecture (32-bit or 64-bit), language packs, and license settings (such as MAK or KMS keys). Microsoft Learn How to Use It
To run this command effectively, you typically follow these steps: Download the ODT : Get the latest version from the Microsoft Download Center Extract Files : Run the downloaded to extract and several sample XML files to a folder. Prepare the XML : Ensure you have a file named configuration-Office2021Enterprise.xml
in that same folder. If you don't have one, you can create a custom one at config.office.com Run as Administrator Command Prompt PowerShell as an administrator, navigate to your folder, and run: setup.exe /configure configuration-Office2021Enterprise.xml Use code with caution. Copied to clipboard (Note: Use a forward slash for the switch; some users accidentally use a backslash which can cause errors) Microsoft Learn Troubleshooting Common Issues Cannot install Office - Error Code 0-2054 - Microsoft Q&A
* André Modesto. Mar 7, 2023, 4:30 PM. It asked me where to extract the files, ended up with 5 files, 4 were .xml's and one setup. Microsoft Learn How to Download and Install Office 2021. - Teletype
The command you are looking for is used to install or configure Microsoft 365 Apps or Office 2021/2019 using the Office Deployment Tool (ODT). Unlike older versions of Office, you cannot simply double-click setup.exe to install; you must reference a configuration file.
Here is the correct command syntax, followed by instructions on how to create the necessary XML file.
Here’s a fully annotated example for Office 2021 Enterprise (Volume License):
<Configuration> <Add OfficeClientEdition="64" Channel="PerpetualVL2021"> <Product ID="ProPlus2021Volume" PIDKEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"> <Language ID="en-us" /> <ExcludeApp ID="OneDrive" /> <ExcludeApp ID="Teams" /> </Product> </Add><Updates Enabled="TRUE" UpdatePath="\server\share\office2021\updates" /> <Product ID> :
<Display Level="FULL" AcceptEULA="TRUE" />
<Logging Level="Standard" Path="%temp%" />
<Property Name="SharedComputerLicensing" Value="0" /> <Property Name="SCLCacheOverride" Value="0" /> <Property Name="FORCEAPPSHUTDOWN" Value="FALSE" /> <Property Name="DeviceBasedLicensing" Value="0" /> </Configuration>
| Error | Likely Cause | Fix |
|-------|--------------|-----|
| 0x80070005 | Permission denied | Run CMD as Administrator. |
| 0x80040609 | Invalid channel for product | Change Channel to PerpetualVL2021 (not MonthlyEnterprise). |
| 0x80070002 | File not found | Ensure setup.exe and XML are in same folder; check XML for typos. |
| Installation hangs | Conflicting Office MSI leftovers | Use Microsoft SaRA tool to scrub old Office entries. |
| PIDKEY not accepted | Wrong key or product ID mismatch | Verify ProPlus2021Volume vs Standard2021Volume. |
To debug, add <Logging Level="Verbose" Path="C:\Logs" /> and inspect the generated log.
To verify installation, search for “Word” or run:
Get-AppxPackage *Microsoft.Office*
# Or check classic COM objects: New-Object -ComObject Excel.Application
Your XML file dictates everything. Below is a complete, production-ready example for Office 2021 Enterprise (Volume Licensed), 64-bit, English, with common apps and Visio viewer.
<Configuration>
<Add OfficeClientEdition="64" Channel="PerpetualVL2021">
<Product ID="ProPlus2021Volume" PIDKEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX">
<Language ID="en-us" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="Teams" />
</Product>
<Product ID="VisioViewer2021Volume">
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" Channel="PerpetualVL2021" />
<Display Level="NONE" AcceptEULA="TRUE" />
<Logging Level="Standard" Path="%temp%\Office2021Log" />
<Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
<Property Name="SharedComputerLicensing" Value="0" />
</Configuration>
<ExcludeApp ID="Access" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Outlook" />
Excluding Outlook can speed deployment and is common in RDS or shared machines.
This guide provides a basic overview of how to configure Office 2021 Enterprise installation using a configuration file with setup.exe. Depending on your organization's needs, you may need to adjust the configuration file to include additional settings or modifications. Always refer to the latest Microsoft documentation and tools for the most current guidance on Office deployments.
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.
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 <Language ID> : The language code (e
To deploy Office 2021 Enterprise (LTSC) using the Office Deployment Tool (ODT), you must run the utility in
mode while pointing it to a specific XML file that defines your installation settings. Experts Exchange 1. The Deployment Command
To start the installation, open a Command Prompt or PowerShell as Administrator
and run the following command from the folder containing your ODT files: setup.exe /configure configuration-office2021enterprise.xml Use code with caution. Copied to clipboard
: This is the ODT executable you extract after downloading the tool from the Microsoft Download Center /configure
: This switch tells the tool to perform an installation or update based on the XML instructions. configuration-office2021enterprise.xml
: This is your custom settings file. It must be in the same folder as unless you provide a full file path. Microsoft Learn 2. Required XML File Content configuration-office2021enterprise.xml
file should contain specific tags to ensure Office LTSC 2021 Enterprise is installed correctly. Below is a standard template: Planned Link Solved: Install Microsoft LTSC Standard 2021
The command setup.exe /configure configuration-office2021enterprise.xml is the standard method for deploying Microsoft Office LTSC 2021 Professional Plus (the enterprise volume license version) using the Office Deployment Tool (ODT).
This process replaces the traditional installer with a scriptable, highly customizable command-line interface preferred by IT professionals for consistency and efficiency. Key Features & Benefits
Customization: Unlike standard installers, this method allows you to exclude specific apps (like Access or Publisher) that your organization doesn't need, saving disk space.
Silent Installation: By modifying the XML file, you can suppress all user prompts (eULA, installation progress), making it ideal for background deployments across many machines.
Volume Licensing Management: It is the primary tool for activating Office LTSC 2021 using Volume License Serial Keys (MAK) or Key Management Service (KMS).
Bandwidth Efficiency: You can use the /download command first to pull installation files to a local network share, allowing other PCs to install Office without consuming further internet data. Core Components
setup.exe configure configuration-office2021enterprise.xml