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
Command | Instruction | |
---|---|---|
/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 values | Set 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 values | Set 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 . |
/rmall | Uninstall all products. | |
/rmmsi | Uninstall all Office MSI products. | |
/channel value | Set update channel. | value: channel ID. More info |
/branch value | Set update channel according to branch value. The command will override the /channel command. | value: branch of channel. More info |
/edition value | Set architecture. | value: 32 or 64 , default value is 32 . |
/migratearch | Migrate architecture. | |
/ver value | Set Office version. | value: Office version number. |
/srcpath value | Set source path. | value: Local or SMB path. |
/fallback | Fallback to Office CDN when language packs are not found locally. | value: true or false . Default value is true . |
/display value | Set whether to display the Office installation screen. | value: true : visible, false : hidden. Default value is true . |
/acpteula | Accept the EULA on behalf of the user. | |
/enableupdates | Set Office update state. | value: true : enbale, false : disable. |
/updatepath | Set Office update download path. | value: Local or SMB path. |
/module value | Set installation module. | value: 0 : Office Deployment Tool, 1 : Office Tool Plus. Default value is 0 . |
/dlfirst | Download first, then deploy. | |
/shortcuts | Create 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:
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 /channel Current
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