Deploy Office 365 ProPlus with a Batch File and Office Deployment Tool
Question details
Create a batch file that uses the Office Deployment Tool and a configuration XML file to automate an Office 365 ProPlus installation.

- Product
- Office 365 ProPlus and Office Deployment Tool
- Device & OS
- Windows (version not provided)
- Scenario
- An administrator wants to install Office on client computers using deployment files stored on a server or in a local folder.
- Observed behavior
- A batch file should launch the deployment tool with the XML settings to download and install the specified Office product.
Extract the appropriate Office Deployment Tool and prepare a configuration XML file with the required product, language, architecture, and source settings. Confirm that the client can access the deployment folder and that the installation account has the necessary permissions and licensing.
Create a batch file for a shared deployment folder
Use this method to download the Office installation files and run the installation from a network-based deployment.
The XML file controls the Office product and installation settings. Its source settings determine where the deployment tool looks for installation files.
Office 365 ProPlus is now called Microsoft 365 Apps for enterprise. Older Office 2013 or 2016 deployments may require a version-appropriate deployment tool and configuration.
Place setup.exe and your configuration.xml in an accessible folder such as \\server\odt. Configure the XML source path to match the intended installation source.
Open Notepad and enter these commands, replacing the paths with your own: @echo off "\\server\odt\setup.exe" /download "\\server\odt\configuration.xml" if errorlevel 1 exit /b 1 "\\server\odt\setup.exe" /configure "\\server\odt\configuration.xml" exit /b %errorlevel%
In Notepad, select File > Save As, choose All Files, and save the file with a .bat extension. Run the batch file on the target computer with the permissions needed to install Office.

Run the installation from a local folder
Use this option when setup.exe, the XML file, and any required installation files are available locally.
Use WPS Office as an alternative for everyday document work
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing documents into a new workflow. It does not deploy or repair Microsoft Office.

Frequently Asked Questions
What does the configuration XML file control?
The XML file specifies deployment settings such as the Office product, language, architecture, and installation source. Pass its path to setup.exe with the /configure option.
Do I need to run /download before /configure?
Not always. If the required installation files are already available at the source specified in the XML, run setup.exe /configure with the XML path. Otherwise, use /download to obtain the files first.
Can I use a network share for the batch file?
Yes. Reference setup.exe and configuration.xml using their UNC paths, such as \\server\odt\setup.exe, and ensure the account running the script can access the share and install software.
Will the same deployment tool work for Office 2013 and current Microsoft 365 Apps?
Do not assume it will. Check Microsoft's documentation for the Office version you are deploying and use the appropriate deployment tool and XML settings for that version.




