The default XML file usually needs to be edited to match your specific needs. You can edit it using Notepad or a code editor like VS Code.

Here is an example of what a standard configuration-office2021enterprise.xml looks like for a Volume License (Enterprise) installation:

<Configuration>
  <Add SourcePath="C:\ODT\Source" OfficeClientEdition="64-bit" Channel="PerpetualVL2021">
    <Product ID="ProPlus2021Volume">
      <Language ID="en-us" />
    </Product>
  </Add>
  <Display Level="Full" AcceptEULA="TRUE" />
  <Property Name="AUTOACTIVATE" Value="1" />
  <RemoveMSI All="True" />
</Configuration>
setup.exe /configure configuration-office2021enterprise.xml

Once your XML file is saved in the same folder as setup.exe, open an elevated command prompt or use your deployment system (SCCM, PDQ, Intune).

setup.exe /configure configuration-office2021enterprise.xml