Prerequisites #
Download Office Deployment Tool (ODT) #
Download Link:
https://www.microsoft.com/en-us/download/details.aspx?id=49117
Download and run officedeploymenttool_16501-20196 and select a directory where the files are extracted. You should find the following files:
configuration-Office2019Enterprise.xml
configuration-Office2021Enterprise.xml
configuration-Office365-x64.xml
configuration-Office365-x86.xml
setup.exe
Create XML File #
Create Deployment XML File:
https://config.office.com/deploymentsettings
Define the Office 365 Apps and other settings that should be deployed and export the .xml file and save it in the same folder as the setup.exe file.
Install Office #
Download Files #
Open PowerShell with the necessary privileges and run the following Command:
./Setup.exe /download yourconfig.xml
Replace yourconfig.xml
with the name of your .xml configuration file and wait till files are downloaded,
a new folder named “Office” appears - the file size should be about 3.12 GB.
Install Office #
Install Office with the following Command and make sure to use the same .xml file:
./Setup.exe /configure yourconfig.xml
Note: If Office is already installed on a Client and just another Office App like OneDrive should be added, make sure to select the Apps that are already installed as well in the xml configuration. Otherwise ODT uninstalles the Apps that are not selected in the xml configuration.