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.

deploy params

For example the following is a simple deploy command:

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 valuesSet 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 valuesSet 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 true.
/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.

Deploying Office Examples

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:

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

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

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

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

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:

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:

deploy /rm ProPlus2021Volume

To uninstall multiple products, you can write this:

deploy /rm "ProPlus2021Volume|VisioPro2021Volume"

To uninstall language pack, you can write this:

deploy /rm LanguagePack_ja-jp