What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Command Prompt cannot show your complete 25-character Microsoft Office product key. Microsoft’s documented OSPP.VBS /dstatus command reports licensing information and the last five characters of the installed key; for Microsoft 365 and most newer Office installations, use the linked Microsoft account to activate or reinstall Office.

Follow the steps below to check the installed license, find the right script path, or identify the account associated with Office.

What Command Prompt can and cannot find

What you want to know Can CMD provide it?
Whether Office has an installed license Yes, with /dstatus
The last five characters of the installed key Yes
The complete 25-character key No
The Microsoft account linked to Office No; check inside an Office app

Microsoft does not display the complete product key inside Office for security reasons. Claims that this command reveals the full key are incorrect for Microsoft’s documented method.

Check your Office version

  1. Open Word, Excel, or another Office application.
  2. Select File → Account. If Account is not visible, select File → Help.
  3. Under Product Information, note the Office product name and version.

The script folder is commonly named Office16 for Office 2016 and Office 2019, and Office15 for Office 2013. The path also depends on whether Office itself is 32-bit or 64-bit, not only on the Windows architecture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Keyboard Switches, 50 Pcs 3 PIN Blue Keyboard Clicker for 3D Prints
  • 【Package Content】The package contains 50 pre-lubricated 3-pin onboard tactile switches, providing smooth actuation and crisp rebound, making it ideal for custom keyboards or upgrades
  • 【Clear Housing Design】Featuring a transparent blue casing that perfectly complements the LED backlight, these key switches provide excellent tactile feedback, giving you a pleasant typing experience
  • 【Quality Material】Made of plastic housing, copper washers, and high-quality springs, these blue switches are waterproof and dustproof, durable, and have a service life of up to 50 million cycles
  • 【Wide Compatibility】Compatible with most keyboards, these keyboard clickers are ideal for users who value feel and performance, making them ideal for typists and gamers
  • 【Factory-Precision Lubrication】Each keyboard switch is machine-lubricated to reduce friction and noise, ensuring smooth, consistent keystrokes and plug-and-play reliability for a superior typing experience

Open Command Prompt as administrator

  1. On Windows 10 or Windows 8.1, select Start, type Command Prompt, right-click the result, and select Run as administrator.
  2. On Windows 7, open Start, right-click Command Prompt, and select Run as administrator.
  3. Approve the User Account Control prompt if Windows displays one.

Run the Office product-key status command

Choose the command matching your Office version and installation architecture. Paste it into the elevated Command Prompt window and press Enter.

Office 2019 or Office 2016

32-bit Office on 32-bit Windows:

cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

32-bit Office on 64-bit Windows:

cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

64-bit Office on 64-bit Windows:

cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
English Keyboard Stickers [5 in 1], Replacement Keyboard Letters Sticker
  • 【5-in-1】Unlike others, our keyboard letter replacement stickers English set includes 2 x English keyboard stickers, 1 x Tweezer, 1 x Keyboard Cleaning Brush, and 1 x Microfiber Cleaning Cloth for easy, clean, and accurate application. Each sticker: 0.43" × 0.51"
  • 【Great Compatibility】The English keyboard stickers fit various desktop, laptop, and tablet computer keyboards. Widely used by students, office or remote workers, multilingual users, language learners, or anyone tired of squinting at worn keys
  • 【Renew Worn-Out Keyboards 】Tired of faded letters under your fingers and the high cost of a new keyboard? The keyboard letter stickers adhere well and are easy to read. Renew worn letter keys to give your keyboard a fresh look without replacement
  • 【Easy to Install and Remove】The computer keyboard stickers can be easily applied and removed without leaving residue. Each letter of the stickers is precisely cut, and the F and J keys feature alignment notches to blend naturally with your keyboard
  • 【Premium Materials】The keyboard stickers are made of durable, long-lasting black vinyl materials with a matte texture, which offers you a comfortable tactile experience similar to the original keyboard. It will not fade for 5 years under normal use

Office 2013

32-bit Office on 32-bit Windows:

cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus

32-bit Office on 64-bit Windows:

cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" /dstatus

64-bit Office on 64-bit Windows:

cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus

Read the result

A successful command reports Office licensing details, including the last five characters of the installed product key. Those characters can help distinguish keys used on the same computer, but they are not enough to reinstall Office or activate it on another PC.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BlingKingdom 10 PCS Mechanical Keyboard Switches, MX Clicky Blue for Gaming
  • This blue key switch has a transparent housing, suitable for LED backlighting, offers excellent tactile feedback, smoother, and will satisfy you with the classic crisp click sound.
  • The mechanical keyboard switch is made of plastic shell, copper gasket, high-quality spring, the shaft core material is POM, waterproof, approximate lifespan of 50 million times of keystrokes, durable.
  • Total stroke of blue switch: 4 mm; working stroke: 2.2±0.6 mm. Tip: Pins may be bent during shipment, but will not be affected the use after correction.
  • Good compatibility, great for most mechanical keyboards, a strong sense of paragraphing, suitable for users pursuing feel and performance, and suitable for typists, enjoy the rhythm of work and games.
  • Packaging: 10 PCS 3 pin keyboard dustproof switches.

The /dstatus command only reports licensing information; it does not modify Office, remove the license, or expose the complete key.

Find the account linked to Microsoft 365 or Office

  1. Open Word or Excel.
  2. Select File → Account.
  3. Under the product name, find the email address after Belongs to.
  4. Sign in to Microsoft’s account and subscriptions area with that email address to manage or reinstall the license.

Microsoft’s current guidance is to use the associated account for Microsoft 365 and most Office 2024, Office 2021, and Office 2019 installations. Most of those newer Office versions do not include a product key for normal activation.

What to do when the command fails

“Input Error: Can not find script file…”

This means the command path does not point to an existing OSPP.VBS file. Common causes include selecting the wrong Office version or architecture, or using a different installation path. Microsoft says trying the wrong status-command path does not harm the installation; check the matching path above and confirm where the script is installed.

Newer Microsoft 365, Office 2024, and Office 2021 Click-to-Run installations may use a path containing root\Office16, such as:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Deftomo 50 Pcs Blue Keyboard Switches, 3-Pin Clicky Tactile Mechanical Keyboard Switches, Complete DIY Replacement Kit with Switch Puller & Brush
  • Package Includes: You will get 50 Pcs blue keyboard switches in one bag! Each set of our mechanical switches comes with a switch puller and a convenient cleaning brush. This complete kit makes switch installation and future keyboard cleaning effortless
  • Enhanced Durability: Engineered with dust-proof and waterproof construction, these switches provide superior protection. This defense significantly boosts your keyboard's longevity, ensuring consistent performance in any environment
  • Authentic Tactile: Experience the satisfying rhythm of typing with a clear tactile bump and a crisp, audible click sound. The driving force offers powerful two-stage feedback, making it the perfect keystroke experience for typists and gamers
  • Strong Visual: The transparent housing maximizes the brilliance of lighting for stunning visual effects. Featuring a standard 3-pin MX design, they are plug-and-play compatible with most hot-swappable keyboards and support profile keycaps
  • Premium Materials: These clicky switches utilize a high-quality POM stem and a robust copper alloy spring. This premium material combination ensures consistent and satisfying keystrokes over an impressive lifespan of enough clicks
  • C:\Program Files\Microsoft Office\root\Office16\
  • C:\Program Files (x86)\Microsoft Office\root\Office16\

In File Explorer, check the relevant Office installation folder for OSPP.VBS or search within that folder for the filename. The path examples above are folder locations; use the actual script path if you run the command.

Office 2013 commands appear inconsistent

Microsoft’s command table lists Office15 for Office 2013 64-bit Office on 64-bit Windows with /dstatus and /inpkey, but prints Office16 for /unpkey. Check which folder actually contains OSPP.VBS before using a key-management command rather than blindly changing the path.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Commands for changing or removing an installed key

The script can remove an installed key or add a replacement key, but these commands do not reveal the original complete key:

  • cscript "PATH_TO_OSPP.VBS" /unpkey:XXXXX
  • cscript "PATH_TO_OSPP.VBS" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Replace PATH_TO_OSPP.VBS with the actual script path. For /unpkey, replace XXXXX with the final five characters reported by /dstatus. For /inpkey, replace the complete placeholder with a valid unused product key. Do not run these commands just to find a key: /unpkey removes the matching installed license, and /inpkey installs a different one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
English Keyboard Stickers, 2 Pack Replacement Keyboard Letters Sticker
  • 【DESIGN FOR】The english keyboard stickers are suitable for a variety of keyboards for Desktops, Laptops and Computer. The keyboard letter stickers are well suited for different language communication, education or a language self-learning.
  • 【EASY TO APPLY & REMOVE】The english keyboard stickers are easy to apply and remove without leaving any residue behind. The individual keyboard replacement english stickers have been cut neatly, and there is a notch for the F and J keys to blend well with your keyboard.
  • 【RENEW THE WORN-OUT KEYBOARD】It’s a great way to update your keyboard worn-out letter keys with a different fresh new look, so you don't have to spend a lot of money on a new keyboard.
  • 【PREMIUM MERTIALS】The computer keyboard stickers are made of high-quality, non-transparent vinyl with a matte texture that will give you a good grip and feel close to the original keyboard. Long-lasting, durable coating, not fade for 2 years in normal use.
  • 【PACKAGE INCLUDED】This keyboard replacement stickers english set includes 2 x English keyboard stickers. Each one small sticker: 0.43" x 0.51". Full Size: 7.09" x 2.56". Risk-Free Replacement Warranty with CaseBuy.

Special cases when you have a product key

  • Already used: “This product key has already been used” generally means it was redeemed and associated with a Microsoft account. Sign in with that account rather than trying to redeem it again.
  • Invalid key: “This product cannot be activated because the product key is not valid” means Microsoft has blocked the key. If it was purchased separately from the software, contact the seller and request a refund.
  • Different key in your account: A key shown under Services & subscriptions may differ from the key printed on a product-key card or receipt. Microsoft says this is normal because they are different types of keys.
  • Work or volume-license Office: If your employer supplied Office Professional Plus, contact your organization’s administrator for help with the volume license.

FAQ

Can Command Prompt show my full Microsoft Office product key?

No. Microsoft’s documented OSPP.VBS /dstatus command reports licensing status and only the last five characters of the installed key. The complete 25-character key is not displayed.

Which command checks an Office 2019 key?

Use the Office16 OSPP.VBS path that matches your Office and Windows architecture, followed by /dstatus. For 32-bit Office on 64-bit Windows, the documented path is cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus.

How do I activate Microsoft 365 without a product key?

Open an Office app and select File → Account to find the email address after Belongs to. Sign in with that Microsoft account when installing or activating Microsoft 365.

Why does OSPP.VBS say it cannot find the script file?

The command points to the wrong Office version, architecture, or installation directory. Newer Click-to-Run installations may use a path containing Microsoft Office\root\Office16; check the actual location of OSPP.VBS.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does /dstatus change or remove my Office license?

No. /dstatus only reports installed licensing information. The separate /unpkey command removes a key, while /inpkey installs one.

The Bottom Line

Use OSPP.VBS /dstatus to check Office licensing or identify the final five characters of an installed key; it cannot recover the full product key. For Microsoft 365 and most newer Office versions, use the Microsoft account shown after Belongs to for activation and reinstallation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.