Global option | Description |
---|---|
/act | Activates installed Office product keys. |
/inpkey:value | Installs a product key (replaces existing key) with a user-provided product key. Value option is required. |
/unpkey:value | Uninstalls an installed product key with the last five digits of the product key to uninstall (as displayed by the /dstatus option). Value parameter is required. |
/inslic:value | Installs a license with user-provided path of the .xrm-ms license. Value parameter is required. |
/dstatus | Displays license information for installed product keys. |
/dstatusall | Displays license information for all installed licenses. |
/dhistoryacterr | Displays the failure history for MAK/retail activation. |
/dinstid | Displays Installation ID for offline activation. |
/actcid:value | Activates product with user-provided Confirmation ID. Value parameter is required. |
/rearm | Resets the licensing status for all installed Office product keys. |
/rearm:value | Resets the licensing status for an Office license with a user-provided SKUID value. Value parameter is required. Use this option with the SKUID value specified by using the /dstatus option if you have run out of rearms and have activated Office through KMS or Active Directory-based activation to gain an additional rearm. |
/ddescr:value | Displays the description for a user-provided error code. Value parameter is required. |
KMS client option | Description |
---|---|
/dhistorykms | Displays KMS client activation history. |
/dcmid | Displays KMS client computer ID (CMID). |
/sethst:value | Sets a KMS host name with a user-provided host name. Value parameter is required. This sets HKLMSoftwareMicrosoftOfficeSoftwareProtectionPlatformKeyManagementServiceName (REG_SZ). |
/setprt:value | Sets a KMS port with a user-provided port number. The default port number is 1688. Value parameter is required. This sets HKLMSoftwareMicrosoftOfficeSoftwareProtectionPlatformKeyManagementServicePort (REG_SZ). |
/remhst | Removes KMS host name and sets port to default. The default port is 1688. |
/cachst:value | Allows or denies KMS host caching. Value parameter is required (TRUE or FALSE). |
/actype:value | (Windows 8 and later versions only) Sets volume activation type. Value parameter is required. Values: 1 (for Active Directory-based), 2 (for KMS), 0 (for both). |
/skms-domain:value | (Windows 8 and later versions only) Sets the specific DNS domain in which all KMS SRV records can be found. This setting has no effect if the specific single KMS host name is set by the /sethst option. Value parameter is the Fully Qualified Domain Name (FQDN) and is required. |
/ckms-domain | (Windows 8 and later versions only) Clears the specific DNS domain in which all KMS SRV records can be found. The specific KMS host is used if it is set by the /sethst option. Otherwise, auto-discovery of the KMS host is used. |
Option | Description |
---|---|
/ ipk [ProductKey] | Installs the product key for Windows (default) or other application identified by the product key. |
/ ato [ActivationID] | Activates the KMS host for Windows (default), or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. |
/ dti [ActivationID] | Displays the Installation ID that is used for telephone activation of the KMS host computer for Windows (default) or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. You enter the Installation ID into the telephone to receive the Confirmation ID, which is used for activating the KMS host computer by using the /atp parameter. |
/ atp [ConfirmationID][ActivationID] | After the Confirmation ID is received, activates the KMS host for Windows (default) or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. |
/ dlv [ActivationID] | Displays detailed license information for Windows (default), or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. For example, run the following command at the elevated command prompt, in the C:windowssystem32 folder to get the status of the Office KMS host: cscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C |
/ dli [ActivationID] | Displays license information for Windows (default), or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. |
/ upk [ActivationID] | Uninstalls the product key for Windows (default) or the application that is identified when its Activation ID is provided. The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. CAUTION: If you intend to uninstall the product key for Office, for example, and forget to enter the Activation ID, all installed product keys are uninstalled. This includes the product key for Windows. |
/ xpr [ActivationID] | Displays the expiration date for the current license state. |
/ sprt [PortNumber] | Sets the TCP communications port on a KMS host computer. It replaces PortNumber with the TCP port number to use. The default setting is 1688. |
/ cdns | Disables automatic DNS publishing by a KMS host computer. |
/ sdns | Enables automatic DNS publishing by the KMS host computer. |
/ cpri | Lowers the priority of KMS host computer processes. |
/ sai [ActivationInterval] | Changes how often a KMS client attempts to activate itself when it cannot find a KMS host computer. It replaces ActivationInterval with a value expressed in minutes. The default setting is 120 minutes. |
/ sri [RenewalInterval] | Changes how often a KMS client attempts to renew its activation by contacting a KMS host computer. It replaces RenewalInterval with a value expressed in minutes. The default setting is 10080 minutes (7 days). This setting overrides the local KMS client settings. |
Option | Description |
---|---|
/ ad-activation-online [ProductKey] | Activates an AD DS forest through the user-provided product key. |
/ ad-activation-apply-get-iid [ProductKey] | Displays installation ID for AD DS forest. |
/ ad-activation-apply-cid [ProductKey][ConfirmationID] | Activates an AD DS forest through the user-provided product key and the Confirmation ID. |
C:program files <x86>Microsoft officeoffice15>cscript ospp.vbs /dstatus
C:program files <x86>Microsoft officeoffice15>cscript ospp.vbs /unpkey:'Last 5 of installed product key'
C:program files <x86>Microsoft officeoffice15>cscript ospp.vbs unpkey:WB222
C:Program FilesCommon FilesMicrosoft SharedOfficeSoftwareProtectionPlatform
or C:Program Files (x86)Common FilesMicrosoft SharedOfficeSoftwareProtectionPlatform
and type OSPPREARM.EXE