Skip to content

Deploy Commands

These commands can be used on command box and the command-line. The commands are not case-sensitive. If a command argument contains spaces, use "" (double quotes) to include them.

batch
deploy params

For example the following is a simple deploy command:

batch
deploy /add O365ProPlusRetail_en-us
CommandInstruction
/add values[]Add one or more products.Values: productID_languages, productID is a required parameter. See the example for how to use it.
/Product_ID.exclapps valueSet up excluded applications for specific product.Product_ID is set according to the productID in the /add parameter. See the example for how to use it.
/Product_ID.mak valueSet MAK for specific product.Product_ID is set according to the productID in the /add parameter. See the example for how to use it.
/rm values[]Uninstall products.Values: productID_languages, usage same as /add.
/rmallUninstall all products.
/rmmsiUninstall all Office MSI products.
/channel valueSet update channel.Value: channel ID. More info
/branch valueSet update channel according to branch value. The command will override the /channel command.Value: branch of channel. More info
/edition valueSet architecture.Value: 32 or 64, default value is 32.
/migratearchMigrate architecture.
/ver valueSet Office version.Value: Office version number.
/srcpath valueSet source path.Value: Local or SMB path.
/fallbackFallback to Office CDN when language packs are not found locally.Value: true or false. Default value is false.
/display valueSet whether to display the Office installation screen.Value: true: visible, false: hidden. Default value is true.
/acpteulaAccept the EULA on behalf of the user.
/enableupdatesSet Office update state.Value: true: enbale, false: disable.
/updatepathSet Office update download path.Value: Local or SMB path.
/module valueSet installation module.Value: 0: Office Deployment Tool, 1: Office Tool Plus. Default value is 0.
/dlfirstDownload first, then deploy.
/shortcutsCreate desktop shortcuts.

Attention

If you specify the source path property with the /srcpath command, you must also specify the /ver and /channel properties or the Office installation may fail.

Command examples for deploying Office

When specifying multiple applications or languages, you need to separate them with commas. Such as Access,Lync or en-us,en-us.

If you need to add or remove languages or proofing tools, use LanguagePack or ProofingTools as product ID.

Deploying Office 2021 Professional Plus - Volume Edition, English (US), excluding Access, Outlook, OneNote, you can write this:

batch
deploy /add ProPlus2021Volume_en-us /ProPlus2021Volume.exclapps Access,Outlook,OneNote /channel PerpetualVL2021

To use local source to deploy Office, You need to specify /srcpath, /ver and /channel command. For 64-bit of Office, use /edition command:

batch
deploy /add O365ProPlusRetail_en-us /O365ProPlusRetail.exclapps Access,Outlook,OneNote /edition 64 /srcpath "D:\Test\Office Tool" /ver 16.0.xxxxx.xxxxx /channel Current

To set a MAK for a volume product, you can write this:

batch
deploy /add ProPlus2021Volume_en-us /ProPlus2021Volume.exclapps Access,Outlook,OneNote /ProPlus2021Volume.MAK XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /channel PerpetualVL2021

Too add multiple products, you can write this:

batch
deploy /add "ProPlus2021Volume_en-us|VisioPro2021Volume_en-us" /ProPlus2021Volume.exclapps Access,Outlook,OneNote,OneDrive,Groove /VisioPro2021Volume.exclapps OneDrive,Groove /channel PerpetualVL2021

To uninstall a product, you can write this:

batch
deploy /rm ProPlus2021Volume

To uninstall multiple products, you can write this:

batch
deploy /rm "ProPlus2021Volume|VisioPro2021Volume"

To uninstall language pack, you can write this:

batch
deploy /rm LanguagePack_ja-jp

MIT Licensed