I installed Office 2013 and put in the product key when it asked me to. After typing in the product key, it allowed me to use MS Word once. After I closed MS Word and went to reopen it the next day, it said the product key I entered was incorrect (maybe I typed it in incorrectly). It asked me to change it. I tried opening MS word and clicking File -> Account but was unable to change the product key from there.

I then went to control panel -> uninstall a program and then clicked on Office 2013 and clicked 'change' but it gave me no option to change the product key. So I decided to uninstall and reinstall it.

I uninstalled it and then went to reinstall it with the setup file and now it is giving me an error saying:

Error 25004. The product key you entered cannot be used on this machine. This is most likely due to previous Office 2013 trials being installed.

The first product key I entered seems to be saved somewhere. How do I delete / change it?


Depending on the combination of Office 2013 and Window version you might have to change the path to Program Files(x86)

Here is the sequence that should work for (x64 Windows -> x64 Office) and (x86 Windows -> x86 Office):

  1. Open cmd prompt

  2. Run the following commands:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus

Note down the partial product key(s) (there can be multiple)

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /unpkey:partial_key

This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

Now you should be able to add it from Control Panel the usual way. Or you can use:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:new_full_key

Then you need to activate it.

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act

Just for update: Still works in Office 2016, you just need to change "Office15" to "Office16".

  • the problem is, I uninstalled MS Office thinking I can reinstall it with no problem. Since I uninstalled it, C:\Program Files\Microsoft OFfice does not even exist. I have no Microsoft Office folder in each Program Files or Program Files(x86). Now it isn't even allowing me to reinstall so I can't even get the 'Microsoft Office' folder back. – user2719875 May 28 '14 at 2:19
  • Oh.. Have you tried to remove the registry keys? community.spiceworks.com/how_to/show/… – balwa May 28 '14 at 20:50
  • I have Office 2013, the link you sent only talks about 2000, XP, 2003, 2007 and 2010. After I went to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\, I saw the number 15.0 (i'm guessing this is Office 13) but when I clicked the folder 15.0, there was no registration key or product number. – user2719875 May 28 '14 at 22:08
  • yes 15.0 is for 2013.. forgot to mention that. I would suggest deleting the 15.0 and subkeys. Now I haven't specifically tested this nor do I know if this would solve it (what could be the downside it's broken right now too) – balwa May 28 '14 at 22:13
  • strange, even after deleting the 'Office' folder from the registry (both local machine and current user) it still gave the same error :/ – user2719875 May 28 '14 at 22:31

Just run the setup for Office 2013 again and choose the option "Enter a Product Key" in the first screen.

protected by Community Nov 15 '15 at 0:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.