Skip to content

Application Commands

The commands are not case-sensitive. If a command argument contains spaces, use "" (double quotes) to include them.

In-application commands

These commands can be only used on command box. You can open command box via button or keyboard shortcuts Ctrl + Shift + P.

Command box

CommandInstruction
/getkey valueGet the default key for a product.value: product ID.
/loadconfig valueLoad config from web location.value: web url.
/setimage valueSet the background image.value: path to image file. Support BMP, PNG or JPG. Support local or web location.
/resetnotifReset notifications to show closed notifications again.
/getlogsGet the application logs.

Commands

These commands can be only used on command-line.

CommandInstruction
/isoinstallRead the ISO configuration and start the installer.You must create the Office ISO, make sure the ISO file contains ConfigForISO.xml, and mount the ISO before running the command.
/loadconfig valueRead the XML configuration and start the installer.value: XML file path.
/srcpath valueOverrides the source path attribute in the XML configuration. This command must be used together with the /loadconfig command.value: path to source.
/edition valueOverrides the client edition attribute in the XML configuration. This command must be used together with the /loadconfig command.value: 32 or 64.
/enablehwacc valueEnable hardware acceleration.value: true or false, default value is true

Office Tool Plus Console Helper

Office Tool Plus.Console is a command-line program. When executing commands via Office Tool Plus, the shell will not wait Office Tool Plus to finish. When executing commands via Office Tool Plus.Console, the shell will wait program to exit and support logging.

For example the following command enable the log output:

powershell
.\"Office Tool Plus.Console" /log

Tip

The deploy and ospp commands enable logging by default, you don't need to specify the /log command again. deploy and ospp commands should not be mixed with other commands or they will not works.

If you want to use deploy commands or activation commands, you can write like this:

powershell
.\"Office Tool Plus.Console" deploy /add ...

Batch File

If you need to run Office Tool Plus.Console using a BAT file, make sure you have administrator privileges to execute this script.

Here is a template:

batch
@echo off
title Office Tool Plus - Console

:: Change the working directory to current directory.
:: Make sure you have administrator permission.
set "Apply=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"" %Apply%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )

:: Run commands.
"Office Tool Plus.Console" /isoinstall
"Office Tool Plus.Console" ospp /inslicid ProPlus2021Volume /sethst kms.example.com /setprt 1688 /act

Just change the 10th and 11th lines as you needed.

MIT Licensed