Setup.exe Configure. Configuration-office2021enterprise.xml ((free))
<RemoveMSI All="TRUE" />
C:\Deploy>
To trigger the actual installation on a target workstation, use the /configure switch. This switch reads the XML file and applies the changes locally. Run the following command from an elevated Command Prompt: setup.exe /configure configuration-office2021enterprise.xml Use code with caution. setup.exe configure. configuration-office2021enterprise.xml
: Tells the tool to use the long-term volume license update channel specific to Office 2021 Enterprise.
: 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 : Tells the tool to use the long-term
: Dictates which components of the suite should not be installed. In the example above, Skype for Business ( Lync ) and the consumer client of OneDrive are blocked from installing. You can add additional lines for Outlook , Access , Publisher , or OneNote if your user base does not require them.
Phase 1: Downloading the Source Files (Optional but Recommended) Microsoft Learn 2
<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>
Let’s break down the command into its three core components: