How to Find Your Microsoft Office Product Key

How to Find Your Microsoft Office Product Key

Quick Answer:

  1. Run “Command Prompt” as Administrator.
  2. Type the following: cscript “C:\Program Files (x86)\Microsoft Office\Office16\OSPP.vbs” /dstatus and press “Enter.” Your location of OSPP.vbs may vary.
  3. You’ll see the last five characters of your Office product key.
  4. Dig around to find the full-length key (box, receipt, email, etc.)


Are you having trouble reinstalling your Microsoft Office? In all likelihood, you’ve forgotten your product activation key. It’s difficult to find, so you might be panicking while trying to remember the lost activation code. There are four types of Microsoft Office software: Retail, Subscription, Volume, and OEM. Each one has specific methods for installation and reinstallation, as well as how the product key gets stored and used.

Unfortunately, Microsoft made changes beginning with Office 2013, where only the last five digits of the product key get stored on your PC. The image below applies to Microsoft Office 2013 and newer, even though they are pushing their 365 subscriptions.

Any app that claims to provide your Office keys is no longer valid. Of course, they may have a hidden or fine-print statement somewhere stating that Office 13 and up only offers the last five digits.

The bottom line is there is no way to obtain the full Product Key using commands or third-party software unless you use Office 2010 or earlier. Your only option is to keep track of your device installs and the corresponding Office versions. Save any receipts or license emails. That way, you can match the correct version using your list once you obtain the last five characters of the current product key on the PC.

The only way to get all twenty-five characters of your Office product key is if you have one of the following:

  • You received an Office volume key from an administrator in your organization.
  • You bought a PC that included Office (usually for one year only, though), and it has a sticker with the product key.
  • You purchased a physical, retail version of Office with the product key in the packaging.
  • You received an email from a third-party seller/distributor that contains your new product key.
  • You have Office 2010 or earlier.

Once you register the product key for Office 2013 and newer in your Microsoft account, your PC will only contain the last five characters of the key. You won’t need it anymore because Microsoft attached the install key to your account (exceptions below). All you have to do is log in and choose to download and install Office from your “Services and subscriptions” section—no key is required. Your product key becomes your Microsoft account instead.

There is only a tiny handful of exceptions that won’t save Office Product Keys as registered software in your Microsft account:

  • You have an MSDN (Microsoft Software Developer Network) product key.
  • You have a MAK (multiple activation key)/KMS (key management services) key.
  • You have a volume key.

The exceptions above require you to activate through the software by telephone or using ‘setup.office.com,’ ‘account.microsoft.com/billing/redeem,’ or ‘setup.microsoft.com.’

You CAN have more than one Office version in your Microsft account and more of the same version. It’s an account with all your licenses, not an installation on a PC. If you have two or more of the same, it reports the number of copies to choose from for the current device.

Whenever you need to reinstall Office on the same PC or switch it to a different one, you can download the correct or desired Office version from your account and install it without needing a product key. Using another PC will deactivate the previous one, and you may need to use phone activation unless you have a 365 subscription that automatically handles it. For licenses allowing more than one PC, it should automatically activate once opened. It will attach it to the same Microsft account it is stored in.

Yes, you can still use product keys to install Office 2013, 2016, 2019, 2021, and 365 if you have one. After that, the key becomes your Microsoft account unless it is a MAK, KMS, MSDN, or another volume license/key.

How to Find Your Microsoft Office 2013/2016/2019/2021 Product Key on a Windows PC

Since you cannot obtain the full product key from your device, or in most cases, from your Microsoft account, you must do a little more work. You CAN get the last five characters of your product key from your PC using commands or third-party software by searching for the original purchase email, obtaining the product packaging, or contacting your administrator to receive the key again.

When obtaining the last five characters, depending on which version of Office you’re checking, the steps for accessing the partial key are slightly different.

Obtaining Office Product Key from your Microsoft Account

If you bought the Windows license through the Microsoft Store, the product key was added to your Microsoft Account. This means that Microsoft sent you the key in a confirmation email. Search through your inbox to find it. If you don’t see it, go through the junk folder. If you’ve already activated it, the key is gone and becomes attached to your Microsoft account. Head to your account and choose to install Office from your “Subscriptions and services” section.

How to Find the Office Product Key on Windows 10 and Windows 11

With Windows 10 and 11, you can use Powershell, Command Prompt, the Registry, or even third-party software to recover the last five characters of your product key. Once you have that, you can search your email accounts for a match and get the complete key, find the original packaging that includes those last five characters, or contact your administrator in networked situations.

How to Find Office Product Key Using Windows PowerShell or Command Prompt

If you’re looking for the Microsoft Office product key on Windows 10 or 11, you can use one of two Windows PowerShell or Command Prompt commands, depending on your Office version and how you obtained it.

As long the Office version is/was purchased through the Workplace Discount Program (formerly Home Use Program), you can use the “SoftwareLicensingService” command. To obtain a previously or currently installed product key, you can use an “OSPP.vbs” command. Once again, you’ll only get the last five characters since that is all that Windows stores on your PC.

To find the last five characters of the Office product key using PowerShell on Windows 10/11, do the following:

  1. Simultaneously press down on the Windows + X keys.

  2. Select Windows PowerShell (Admin) or Command Prompt (Admin).


  3. For Workplace Discount Program software, type in:
    wmic path SoftwareLicensingService get OA3xOriginalProductKey


  4. You can also use the following:
    (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey


  5. Your product key should appear once the command is executed. If not, you have an Office retail version rather than a digital one. Move to the next step.


  6. Paste the corresponding text string listed below (the correct location of “OSPP.vbs), then press “Enter” to execute it:

    Office 2016-2021 (32-bit) on a 32-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.vbs" /dstatus
    Office 2016-2021 (32-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus
    Office 2016-2021 (64-bit) on a 64-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus
    Office 2013 (32-bit) on a 32-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus
    Office 2013 (32-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.vbs" /dstatus
    Office 2013 (64-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" /dstatus
    Office 2010 (32-bit) on a 32-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /dstatus
    Office 2010 (32-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /dstatus
    Office 2010 (64-bit) on a 64-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /dstatus
    Office 2007 (32-bit) on a 32-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office12\OSPP.VBS" /dstatus
    Office 2007 (32-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office12\OSPP.VBS" /dstatus
    Office 2007 (64-bit) on a 64-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office12\OSPP.VBS" /dstatus
    Office 2003 (32-bit) on a 32-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office11\OSPP.VBS" /dstatus
    Office 2003 (32-bit) on a 64-bit Windows OS
    cscript "C:\Program Files (x86)\Microsoft Office\Office11\OSPP.VBS" /dstatus
    Office 2003 (64-bit) on a 64-bit Windows OS
    cscript "C:\Program Files\Microsoft Office\Office11\OSPP.VBS" /dstatus

To find the product key using the command prompt on Windows 10/11, do the following:

  1. Simultaneously press the Windows + S keys to open Windows search.

  2. Typecmdand select Run as administrator from the search results.


  3. For Workplace Discount Program software, paste the following in the pop-up command window:
    wmic path SoftwareLicensingService get OA3xOriginalProductKey.


  4. Your partial key should appear on the screen. If nothing displays or it repeats the output as OA3xOriginalProductKey,” you do not have Workplace Discount Program software. Try the “OSPP.VBS” Powershell commands above in the Command Prompt.

How to Find Your Microsoft Office Product Key on a Mac

There are also different ways to unlock Microsoft Office on your MacBook.

First, try using the one-time PIN. To do so:

  1. Locate the packaging or card that came with your Microsoft Office.

  2. When you find the PIN, type it in on this Microsoft website.

This method will recover your key only if you’ve never used the PIN.

The product key could be saved on your account page if you’ve used it before. To locate it on your page:

  1. Sign in to your Microsoft account.


  2. Tap “View product key” and then locate it on the screen.

You should receive the product key in your inbox when you download Office from an online store. When searching your email for the receipt, go through the junk folder too.

If you’ve bought a DVD copy of Office, check the inside of the DVD case. You should see the product key on a yellow sticker.

How to Find Your Microsoft Office Product Key in the Microsoft Workplace Discount Program

Your Mac could be using the Microsoft Workplace Discount Program version of Office. In that case, you’ll have to get a product code instead of a key.

Here’s how to find the code:

  1. Enter the Workplace Discount Program.


  2. Type your country or region and work email address.


  3. Select Don’t Know Your Program Code and Tap Verify Email.



These steps will allow you to retrieve your product code.

How to Find Your Microsoft Office Product Key Using Third-Party Software

Using additional software can sometimes be complicated. But tools like RecoverKeys and XenArmor All-In-One KeyFinder Pro make finding your product key relatively straightforward. Of course, your PC only stores the last five characters of your Office 2013 and newer product key, but 2010 and earlier will show the full key.

Getting Your Office Product Key from a Retail Purchase

A licensed retail store can also sell physical Windows products. They come in a box with a small card containing the Microsoft Office product key. Many stores also sell Office in a card form or as a digital download, which is more common now. If you’ve saved the card from whichever retail item you purchased, flip it over to see the key.

Also, you might have taken a picture of the key as an online backup. If you suspect you saved an image, go through your gallery until you find the one that matches the last five characters.

Alternatively, when you purchase a PC, the product key can be found on the computer’s chassis sticker or in printed materials. Although the sticker can rub off over time, you can check your device to see if the key is still visible.


Most people’s personal or professional lives revolve around accessing Microsoft products frequently. When you upgrade or reinstall your software, getting locked out of your Office Suite can be frustrating, especially if you’ve forgotten the product key.

The good news is that you have all the tools necessary to bypass this problem. Whether you’re a PC or Mac user, this article has hopefully helped you find your product key anytime and anywhere.

When was the last time you had to search for your Microsoft Office key? How did you restore it? Tell us in the comment section.

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.