How to Identify the Installed Microsoft Office Product Key on a Computer
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.

- 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.
Ensure you have administrator privileges on the computer, as running the required command-line licensing script requires elevated permissions.
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.
Click the Windows Start menu, type 'Command Prompt' or 'cmd' in the search bar, right-click the application, and select 'Run as administrator'.
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.
Type `cscript ospp.vbs /dstatus` into the Command Prompt and press Enter to execute the Office licensing script.
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.

Contact Microsoft Support for License Identification
If the command-line script does not yield results or you are managing complex Microsoft 365 subscriptions, contact official support for assistance.
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. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions to set up the suite.
- 3. Open Your Files Instantly: Launch WPS Office and instantly open your existing Office documents without ever needing to input a product key.

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.




