Skip to content

Instantly share code, notes, and snippets.

@giordanocardillo
Last active March 31, 2024 09:48
Show Gist options
  • Star 91 You must be signed in to star a gist
  • Fork 25 You must be signed in to fork a gist
  • 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
  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>

  1. Enjoy!
@MinhNH182
Copy link

It works pretty well, many thanks 👍

@pere88
Copy link

pere88 commented Nov 7, 2017

Fantastic!

@ialima
Copy link

ialima commented Nov 12, 2017

Thanks, thanks, thanks!!! Works perfectly.

@yosefzai
Copy link

It fixed my issue however for some reason now when I access one note it gives me a message that "we didn't find any office product for this account" my email account

@gurkannavruz
Copy link

You;re great.. thnxx!

@licengkuri
Copy link

thanks working

@Tommasov
Copy link

Thank you

Copy link

ghost commented Nov 21, 2018

Thank you so much! I don't really know why but I had 4 licenses but I only have a 365 home subscription... I've been able to remove the other ones because of you. Thanks again!

@joanaarantes
Copy link

Working! Problem Solved! Thank you!

@mudabbirali92
Copy link

those who are wandering here to find why my cmd showing "C:>" in advance. So you have to change the directory to installed directory of your ms office. just type cd "your path" then type cscript "OPSS.vbs" /dstatus. Make sure to append spaces as I have mentioned in demo..
Thanks in advance

@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.

@Alexmkh855
Copy link

Sorry, didn't work. Seemed like it would, commands processed, Office re-configured itself, requested system reboot, - and Activation pop-up is back again. Oh yeah, and there is no OEM subfolder in registry either.

@Alexmkh855
Copy link

No luck. Pop-up after clicking on Data.exe: Windows could not complete the extraction. Destination file could not be created. Error 0x80004005: Unspecified error.

@cookbetty771
Copy link

Thank you, https://hypestkey.com/ I bought the key office 2016 pro plus here for cheap price, the key was retail and activated without problems. and they microsoft partner

Activated using that guide
https://officecdn.microsoft.com/db/492350F6-3A01-4F97-B9C0-C7C6DDF67D60/media/en-US/ProPlusRetail.img

After download install
Open word/excell
Click activation via internet
Put code

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