logo
search
Product Key Issues

How to Identify the Installed Microsoft Office Product Key on a Computer

John WilsonJohn Wilson Oct 1, 2026 868 views

Question details

The user needs to determine which Microsoft Office product key is currently installed on a specific computer to properly manage, transfer, or replace licenses.

How to Identify the Installed Microsoft Office Product Key on a Computer
Product
Microsoft Office
Device & OS
not provided
Scenario
Managing multiple Office licenses and needing to identify the specific license tied to a device before replacing or transferring the software.
Observed behavior
The standard Microsoft Office interface does not display the full product key, making it difficult to match the installation to purchasing records.
Before you start

Ensure you have administrator privileges on the computer, as running the required command-line licensing script requires elevated permissions.

Solution 1Recommended

Use the Office Licensing Script (ospp.vbs) to View Product Key Details

Run a command-line script to display the last five characters of your installed Office product key, allowing you to match it against your license records.

For security reasons, Microsoft Office only exposes the last five characters of your installed product key locally on the computer. This is typically sufficient to help administrators identify and match the installation with a specific license in their purchasing records or volume licensing portal.

1
Open Command Prompt as Administrator

Click the Windows Start menu, type 'Command Prompt' or 'cmd' in the search bar, right-click the application, and select 'Run as administrator'.

2
Navigate to the Office installation folder

Depending on your Office version and system architecture, type `cd C:\Program Files\Microsoft Office\Office16` (or use `Program Files (x86)` for 32-bit versions) and press Enter.

3
Run the dstatus command

Type `cscript ospp.vbs /dstatus` into the Command Prompt and press Enter to execute the Office licensing script.

4
Identify the key

Review the output text and look for the line that says 'Last 5 characters of installed product key:' to identify the specific license installed on this computer.

Use the Office Licensing Script (ospp.vbs) to View Product Key Details
Volume Licensing: This script method is primarily effective for volume-license installations and traditional perpetual licenses (such as Office 2016, 2019, or 2021).
Free Microsoft Office alternative

Try WPS Office: A Hassle-Free Alternative to Microsoft Office

Tired of managing complicated product keys and volume licenses across multiple computers? WPS Office offers a lightweight, completely free alternative that requires no complex licensing management while remaining fully compatible with Microsoft Office formats.

  1. 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions to set up the suite.
  3. 3. Open Your Files Instantly: Launch WPS Office and instantly open your existing Office documents without ever needing to input a product key.
No complicated product keys or volume licensing scripts to manage.Seamless format compatibility with Microsoft Word, Excel, and PowerPoint (.docx, .xlsx, .pptx).Completely free to use with a familiar, easy-to-learn user interface.Lightweight software that installs quickly on Windows, Mac, and Linux without system bloat.
microsoft office alternative - wps office

Frequently Asked Questions

Can I view my full 25-character Microsoft Office product key on my computer?

No. For security reasons to prevent software piracy, Microsoft restricts local machines from displaying the full product key. Only the last five characters of your installed product key are exposed through the licensing script.

Where can I find the full product key if I only have the last 5 characters?

You can use the last 5 characters to match against your original purchase confirmation emails, physical product packaging, or the digital records in your Microsoft Account portal or Volume Licensing Service Center.

Does the /dstatus script work for Microsoft 365 subscriptions?

The `/dstatus` script is primarily designed for volume licenses and traditional perpetual Office versions. Microsoft 365 licenses are generally tied directly to your user account (digital entitlement) rather than a traditional local product key.