Skip to content

Instantly share code, notes, and snippets.

@giordanocardillo
Last active February 20, 2025 13:35
Show Gist options
  • Save giordanocardillo/c3209cb215226d47322d98499c7a1df7 to your computer and use it in GitHub Desktop.
Save giordanocardillo/c3209cb215226d47322d98499c7a1df7 to your computer and use it in GitHub Desktop.
Remove Office 2016 Product Key

Caution

Due to the subject of this Gist there are a lot of spam/scam comments. I try to remove them all as soon as possible. I don't recommend you to click on any link in the comments

How to remove Microsoft Office 2016 Product Key

  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

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

  • Office 2016 (32-bit) on a 64-bit version of Windows

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

  • Office 2016 (64-bit) on a 64-bit version of Windows

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

  1. You should now get a screen with some license details such as the license name, type and the last 5 characters of the Product Key.

  2. You can use the last 5 characters of the Product Key to remove it using command:

  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /unpkey:<LAST 5 CHARACTERS>

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /unpkey:<LAST 5 CHARACTERS>

  • Office 2016 (64-bit) on a 64-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /unpkey:<LAST 5 CHARACTERS>

@cpardanaz
Copy link

Great tip!. Thank you.

@vleitzgen
Copy link

Hi, worked great, but the old license is coming back again and again and again and I cannot get rid of it this way. Any other idea? Registry?

@sibbieboi
Copy link

Hey thank you very much for solving the problem. I specially made an account to thank you. Much Appreciated. Tension released. May god bless you and your family and everyone around you . Much Love. Thanks

@cgitosh
Copy link

cgitosh commented May 1, 2021

You are the GOAT, I was about to go fiddle around in the registry

@timchambers
Copy link

Worked like a charm, thank you!

@lax2012
Copy link

lax2012 commented Feb 9, 2022

Fantastic! You deserve a beer! Tell me your paypal and I'll send it !

@hhbadarin
Copy link

Worked perfectly! Thank you so much.

@giordanocardillo
Copy link
Author

Fantastic! You deserve a beer! Tell me your paypal and I'll send it !

Haha, don’t worry, happy to be useful

@Alexmkh855
Copy link

CMD response after step 2:

ERROR CODE: 0xC004F056
ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated using the Key Management Service (KMS).

CMD response after step 3 with the last 5 characters:
Input Error: There is no file extension in "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS\unpkey:xxxxx"

@LtdJorge
Copy link

Don't click links above, all scams

@minahilmalik82828
Copy link

@playprotect033
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment