Microsoft 365 Installation Problems

Deploy Office 365 ProPlus with a Batch File and Office Deployment Tool

Muhammad TalhaMuhammad Talha Nov 27, 2026 870 views

Question details

Create a batch file that uses the Office Deployment Tool and a configuration XML file to automate an Office 365 ProPlus installation.

Deploy Office 365 ProPlus with a Batch File
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.
Before you start

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.

Solution 1Recommended

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.

1
Prepare the shared folder

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.

2
Create the batch file

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%

3
Save and run the script

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.

Create a batch file for a shared deployment folder
Downloading is optional: If the required installation files are already available at the source specified in the XML, omit the /download command and its error check. The /configure command performs the installation.
Free Microsoft Office alternative

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.

Open and edit common Microsoft Word, Excel, and PowerPoint formatsUse familiar document, spreadsheet, and presentation toolsWork with existing Office files without installing Office 365 ProPlusGet started with a free, lightweight office suite
microsoft office alternative - wps 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.