Activating Microsoft 365 through the Command Prompt (CMD) is primarily done using the Office Software Protection Platform (ospp.vbs) script, which allows you to manage licenses, input product keys, and trigger activation. 1. Open CMD as Administrator
To perform licensing tasks, you must have administrative privileges:
Press the Windows key, type cmd, right-click on Command Prompt, and select Run as administrator. 2. Navigate to the Office Directory
You need to change the directory to where ospp.vbs is located. This varies based on your Office version (32-bit vs. 64-bit):
64-bit Office: cd "C:\Program Files\Microsoft Office\Office16"
32-bit Office (on 64-bit Windows): cd "C:\Program Files (x86)\Microsoft Office\Office16" 3. Key Activation Commands
Once in the correct folder, use these commands to manage your license:
Check Current Status: To see the last 5 characters of your current key and activation status, run:cscript ospp.vbs /dstatus
Install a New Key: If you have a 25-character product key:cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Trigger Online Activation: To force the activation process immediately after entering a key:cscript ospp.vbs /act 4. Troubleshoot and Removal
If you have multiple conflicting keys or are experiencing errors, you can remove an existing license by its last 5 characters: Remove Key: cscript ospp.vbs /unpkey:XXXXX
For official guidance on standard activation methods, including signing in with a Microsoft account, visit Microsoft Support. Activate Office for Windows - Microsoft Support
To activate Microsoft Office 365 using the Command Prompt (CMD), you must use the ospp.vbs script located in the Office installation directory. This script manages volume activation and licensing tasks directly from the command line. Step 1: Open CMD as Administrator Click the Start menu and type cmd. Right-click Command Prompt and select Run as administrator. Step 2: Navigate to the Office Directory
You must move to the folder containing the ospp.vbs file. The path depends on your installation version (32-bit vs. 64-bit):
For 64-bit Office (Common):cd C:\Program Files\Microsoft Office\Office16
For 32-bit Office on 64-bit Windows:cd C:\Program Files (x86)\Microsoft Office\Office16 Step 3: Install the Product Key
Use the following command to input your 25-character product key. Replace XXXXX with your actual key:cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Step 4: Trigger Activation
Once the key is installed, run the activation command to connect to Microsoft's servers and finalize the process:cscript ospp.vbs /act Troubleshooting Commands
Check Status: To verify if Office is activated or to see the last five digits of the current key, use:cscript ospp.vbs /dstatus.
Uninstall a Key: If you need to remove an old or incorrect key, use the last five characters of that key (found via the /dstatus command):cscript ospp.vbs /unpkey:XXXXX.
This process is useful for IT admins or users facing activation errors via the normal GUI.
Always use legal licenses. Unauthorized activation scripts or KMS workarounds are unsafe and illegal.
La ruta donde se encuentra OSPP.VBS (Office Software Protection Platform Script) es el corazón del proceso. Este script VBS se ejecuta desde CMD y permite gestionar la activación.
Para Office de 64 bits en Windows de 64 bits:
cd "C:\Program Files\Microsoft Office\Office16"
Para Office de 32 bits en Windows de 64 bits:
cd "C:\Program Files (x86)\Microsoft Office\Office16"
Para Office 2013 o versiones anteriores (Office15): Cambie Office16 por Office15. Para Office 2019/2021/365 actual, sigue siendo Office16.
Puede verificar que está en la carpeta correcta escribiendo dir. Si ve el archivo OSPP.VB, está listo.
Los métodos anteriores están diseñados principalmente para versiones Volume License (VL) de Office. Si usted tiene una suscripción Microsoft 365 Family o Personal (aquella que paga mensual o anualmente con una cuenta Microsoft), no puede activarla directamente con CMD usando claves genéricas. En ese caso:
Sin embargo, puede usar CMD para solucionar problemas de esta suscripción ejecutando:
cscript ospp.vbs /rearm
Este comando restablece el estado de activación, útil si ha cambiado hardware o reinstalado Windows.