Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
The ospp.vbs script is a powerful tool included with Microsoft Office that allows users to manage Office product activation. This script is especially useful for IT administrators who need to automate the activation process across multiple machines. By leveraging ospp.vbs, you can activate, check the activation status, and even troubleshoot activation issues from the command line. This article will guide you through the practical use of ospp.vbs in a Windows environment.
Examples:
Checking Activation Status:
To check the activation status of Microsoft Office, open Command Prompt as an administrator and navigate to the Office installation directory. The default path for Office 2016/2019/2021 is usually C:\Program Files\Microsoft Office\Office16
or C:\Program Files (x86)\Microsoft Office\Office16
for 32-bit installations on a 64-bit system.
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
This command will display the activation status of all installed Office products.
Activating Microsoft Office: To activate Microsoft Office using a product key, you can use the following command:
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act
Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
with your actual product key. The first command inputs the product key, and the second command activates Office using the entered key.
Removing a Product Key: If you need to remove a product key from an Office installation, use the following command:
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /unpkey:XXXXX
Replace XXXXX
with the last five characters of the product key you wish to remove.
Viewing Detailed License Information: To get detailed information about the installed licenses, use:
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /dlicensel
This command provides a comprehensive overview of all the licenses installed on the system.