Activar Office 365 Desde Cmd May 2026

El primer paso es crucial. No funcionará si solo abre CMD normalmente.

Verá una ventana negra con el texto C:\Windows\system32>.


Finalmente, para activar la licencia (ya sea contra los servidores de Microsoft o un servidor KMS local si estás en una empresa), ejecuta el siguiente comando:

cscript ospp.vbs /act

"Did you know you can activate #Office365 using just CMD? Here's the legitimate method for licensed users. 🖥️✅ #Microsoft #OfficeActivation #TechTips"

Activating Microsoft Office 365 via the Command Prompt (CMD) is a common manual method for administrators using Volume Licensing or users with a valid Key Management Service (KMS) host. This process involves using the ospp.vbs script located in the Office installation folder to manage licenses and trigger activation. Step-by-Step Guide to Activation

Open CMD as AdministratorSearch for "cmd" in the Windows Start menu, right-click Command Prompt, and select Run as administrator.

Navigate to the Office DirectoryThe command depends on your version of Office (32-bit vs. 64-bit). Use one of the following:

64-bit Office: cd /d %ProgramFiles%\Microsoft Office\Office16

32-bit Office (on 64-bit Windows): cd /d %ProgramFiles(x86)%\Microsoft Office\Office16.

Install the Product Key (Optional)If you have a 25-character product key and it isn't already installed, use:cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.

Set the KMS Host (For Volume Licensing)If you are using a KMS server (common in schools or businesses), point Office to that server:cscript ospp.vbs /sethst: (e.g., kms8.msguides.com or your organization's server).

Trigger ActivationRun the final command to activate the software:cscript ospp.vbs /act. Useful CMD Commands for Office

Check Activation Status: Use cscript ospp.vbs /dstatus to see the current license status and the last five characters of the installed key. activar office 365 desde cmd

Remove a Key: If you have an invalid key causing issues, use cscript ospp.vbs /unpkey:XXXXX (replace XXXXX with the last 5 characters from the status command). Important Considerations

Official Support: Microsoft generally recommends activating by signing in with your Microsoft Account first.

Permissions: You must have administrative rights for these commands to execute successfully.

KMS Expiry: KMS activations typically last 180 days and must be renewed by reconnecting to the KMS host periodically. Activate Office for Windows - Microsoft Support

An "interesting feature" of using the Command Prompt (CMD) for Office 365 activation is the ability to bypass the standard graphical interface to remotely manage troubleshoot license conflicts that often cause activation loops. Microsoft Learn

While many users look for CMD activation hacks, the most powerful "hidden" capability for legitimate users is the Office Software Protection Platform (OSPP.VBS) script, which allows for advanced license surgery. Microsoft Learn 🛠️ The "Secret Weapon": OSPP.VBS

Most activation issues are caused by "ghost" licenses from previous installations. You can use CMD to identify and surgically remove only the problematic keys. Audit Your Licenses

: Instead of just trying to activate, you can see exactly which license is currently active and its "grace period" status. cscript ospp.vbs /dstatus Use code with caution. Copied to clipboard Surgical Removal

: If you have a "Product Not Activated" error despite having a valid subscription, CMD lets you remove the last 5 digits of a "ghost" key to force a clean login. cscript ospp.vbs /unpkey:XXXXX Use code with caution. Copied to clipboard University of Minnesota Twin Cities 🚀 The "Hidden" Modern Tool: vNextDiag

For the newest versions of Microsoft 365 (Version 1910 and later), Microsoft introduced a modern replacement for the old scripts called vNextDiag.ps1 Microsoft Learn What makes it interesting?

Unlike the older CMD scripts that focused on local keys, this tool is designed specifically for subscription-based activation.

It can diagnose why your school or work account isn't "talking" to the Microsoft servers, which the old often can't handle. 💡 Pro Tip: Remote Activation El primer paso es crucial

If you are managing multiple computers (like a small office), you can actually trigger activation on a

over your network using CMD, provided you have admin credentials. Microsoft Learn cscript ospp.vbs /act [RemoteComputerName] Use code with caution. Copied to clipboard ⚠️ Note on "Free" Activation

Many online tutorials suggest using third-party scripts (like "MassGrave" or "KMS" tools) found on GitHub to activate for free. While these are popular "features" discussed in tech communities, they often bypass official licensing and may carry security risks depending on the source. Official activation always requires a valid product key or a Microsoft 365 subscription

Why do I need an account to sign in to Microsoft 365 or Office?

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 Finalmente, para activar la licencia (ya sea contra

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

While there is no official "paper" to create for activating Office 365 via Command Prompt (CMD), the process is a standard administrative task. It is important to note that

official Microsoft 365 (subscription-based) versions generally require a sign-in for activation

and cannot be fully activated via CMD like perpetual licenses (e.g., Office 2021).

However, if you are using a Volume License or need to manage activation manually, you can follow these steps: Manual Activation Steps via CMD Open Command Prompt as Administrator Search for in the Windows Start menu. Right-click it and select Run as Administrator Navigate to the Office Folder

Depending on your installation (32-bit or 64-bit), use one of the following commands: cd /d %ProgramFiles%\Microsoft Office\Office16 cd /d %ProgramFiles(x86)%\Microsoft Office\Office16 Install the KMS Client Key (For Volume Licensing) Enter the following command to input your product key: cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (Replace "X" with your actual 25-character product key) Set the KMS Host (Optional) If using a specific activation server: cscript ospp.vbs /sethst:://yourserver.com Run Activation Execute the final command to activate: cscript ospp.vbs /act Summary of Commands Check Current Status cscript ospp.vbs /dstatus Input Product Key cscript ospp.vbs /inpkey:YOUR-KEY Activate Now cscript ospp.vbs /act Uninstall Key cscript ospp.vbs /unpkey:LAST5DIGITS Important Safety Note:

Avoid using scripts from untrusted sources (like those found on some video platforms) that claim to activate Office for "free" by connecting to third-party KMS servers, as these can pose security risks. Activate Office for Windows - Microsoft Support


Si su organización utiliza un servidor KMS local, debe indicarle a Office dónde encontrarlo.

cscript ospp.vbs /sethst:nombre_del_servidor_kms

O usando la IP:

cscript ospp.vbs /sethst:192.168.1.50

Para configurar el puerto (generalmente 1688, el puerto por defecto de KMS):

cscript ospp.vbs /setprt:1688

Antes de comenzar, asegúrese de cumplir con estos requisitos: