For most Office 365 subscriptions, the default activation server is already configured. If you need to manually set it (e.g., for enterprise or education accounts):
cscript ospp.vbs /sethst:kms.lmcloud.vbs
Note: For personal Microsoft 365, you typically do not need this step.
Check the status again:
cscript ospp.vbs /dstatus
You should now see LICENSED next to your product key.
"activar office 365 cmd windows 11 original" – If you have typed this phrase into a search engine, you are likely looking for a fast, reliable way to get Microsoft Office 365 (now called Microsoft 365) up and running on your Windows 11 machine.
While the internet is full of dangerous "cracks" and "patch files," the safest and fastest method remains using the Command Prompt (CMD) to manage an original, legitimate license.
In this guide, we will show you exactly how to use CMD to activate your genuine Office 365 subscription, troubleshoot activation errors, and redirect your license to the correct installation path.
If a wrong or expired key is already installed, remove it first: activar office 365 cmd windows 11 original
cscript ospp.vbs /unpkey:Last5Chars
Replace Last5Chars with the actual suffix shown in /dstatus.
The location of Office has changed over the years. On 64-bit Windows 11 with 64-bit Office (standard), use this command:
cd “C:\Program Files\Microsoft Office\Office16”
Note: Even though it says "Office16," this folder is used for Office 365, Office 2019, Office 2021, and Office 2024.
Alternative paths if the above fails:
Activating Microsoft Office 365 on Windows 11 using the Command Prompt (CMD) is a standard troubleshooting procedure for IT professionals and users resolving activation errors. While most modern installations activate automatically via the internet upon signing in with a Microsoft account, CMD is essential when manually configuring volume license versions or troubleshooting the Software Protection Platform.
Prerequisites Before proceeding, ensure that:
Step 1: Open Command Prompt as Administrator For most Office 365 subscriptions, the default activation
Step 2: Locate the Office Installation Folder
The command prompt defaults to C:\Windows\System32. You must navigate to the folder containing the Office Software Protection Platform script (ospp.vbs). The location depends on your Office architecture (32-bit or 64-bit) and Windows version.
For Office 365 (64-bit) on Windows 11, run the following command:
cd /d "C:\Program Files\Microsoft Office\Office16"
For Office 365 (32-bit) on Windows 11 (common if installed from the Microsoft Store or via Click-to-Run), run:
cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
(Note: The folder is typically named Office16 for Office 2016, 2019, and 365 versions.)
Step 3: Check Current License Status Before activating, verify the current status to ensure the correct licenses are installed. Type the following command and press Enter:
cscript ospp.vbs /dstatus
This command displays the last 5 characters of the installed product key and the license status (e.g., LICENSED, UNLICENSED, or OOBE_GRACE). Note: For personal Microsoft 365, you typically do
Step 4: Install the Product Key
If the status shows unlicensed or if you need to input a valid key provided by your Volume Licensing Service Center (VLSC), use the command below. Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your actual 25-character key.
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Step 5: Activate the Product Once the key is installed, you can attempt activation.
If no key is installed or you have the wrong key, install your genuine Office 365 key.
cscript ospp.vbs /inpkey:YOUR-PRODUCT-KEY-HERE
Replace YOUR-PRODUCT-KEY-HERE with the 25-character key from your Microsoft receipt.
For Microsoft 365 Account holders (Digital License): If you bought Office via the Microsoft Store, you don't usually type a key. Instead, ensure you are signed into the correct Microsoft Account inside the Office app (Word/Excel). CMD cannot activate digital entitlements; you must use the "Sign in" button.
Many users think activation requires clicking through 10 wizard screens. However, IT professionals use CMD for three specific reasons:
Important: CMD does not magically create a license. You still need a genuine Product Key or a Microsoft Account with an active Microsoft 365 subscription. This guide assumes you have paid for Office 365 but are having trouble activating it via the GUI.