OfficeDeploymentTool

From Piszczynski
Revision as of 14:38, 25 May 2022 by piszczynski>Aleks (→‎Configuration and Use)

Office Deployment Tool

For installing Microsoft office in an enterprise environment it may be more suitable to use the office deployment tool rather than the standard installer downloaded from the office website.

The Office deployment tool allows for an automated installation with options.

See documentation here: https://docs.microsoft.com/en-gb/deployoffice/overview-office-deployment-tool

Download here: https://www.microsoft.com/en-us/download/details.aspx?id=49117


Configuration and Use

The ODT requires the configuration of an xml file to run.

The tool itself is run from the command line with the following command (run as admin):

  • setup.exe /configuration configXmlFile.xml

The tool can also be used to download the install package using the /download switch and an xml file.

Example xml file


<Configuration>

  <Add OfficeClientEdition="64" Channel="Current">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-GB" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="Teams" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="OneNote" />
    </Product>
    
  </Add>
  <Display Level="None" AcceptEULA="TRUE" />
  <Property Name="SharedComputerLicensing" Value="1" />

</Configuration>

This will configure the install to use the en-gb language with some of the apps excluded from install with the shared licences active.

The shared licences is useful for any servers that have multiple users and are compatible with the O365 enterprise licences (E3 + E5 etc)

The display level sets if the user of the computer will see the installer and if they are required to accept the EULA

To install from a network or local location you will need to run the /download command first specifying the location/path in the "Add" section:


<Add SourcePath="\\server\networkshare "OfficeClientEdition="64" Channel="Current">

The sourcepath will then need to be specified in the xml file used when installing using the /configure switch.