Change your Office product key
This article applies to Office Home & Business, Office Professional, and individually purchased Office apps.
If you bought multiple copies of Office and used the same Install button to install Office on multiple PCs, activation fails on the other PCs. This happens because each Install button is associated with a unique product key that can only be installed on one PC. To fix this, you can change the product key for the other PCs where you installed Office.
Note: After you change your product key, we recommend that you create a list to manage the product keys that you’ve installed. To learn how, see Manage multiple one-time-purchase Office installs that use the same Microsoft account.
Select your Office version below.
On the device where you want to change the key, open any Office app, select the File menu and then select Account near the bottom of the menu.
Under Product Information, select the Change License button.
If there is no Change License button, you may need to install Office updates.
Do one of the following:
If you’re signed in, select Use a different account, and then select Enter product key instead.
If you’re not signed in, select Enter product key instead.
Enter your Office 2019 or Office 2016 product key, and then select Install this product instead.
If your product key is new, follow the prompts to complete the redemption process.
Office begins the update process. Close all Office apps to finish the process.
Uninstall Office from the PC where activation is failing. To do this, see Uninstall from a PC.
On the PC where you uninstalled Office, sign in to your Services & subscriptions page with the email and password associated with the Microsoft account that was used to install Office.
Reinstall Office by selecting Install Office for a one-time purchase that hasn’t been activated. For help with installing Office, see Install Office on your PC or Mac.
To switch an Office install to or from Microsoft 365, see Switch your Office license.
Sign in to your Services & subscriptions page with the email and password associated with the Microsoft account that was used to install Office.
After you sign in, you should see a list of Office products that are associated with your Microsoft account.
For the first product that’s listed on the page, select View product key. Copy or write down the product key. This is likely the product key that was used multiple times to install Office.
Select View product key for the remaining Office products and copy or write them down. These are likely the keys that you’ll use to replace the key that was used multiple times.
On a PC where Office activation is failing, open the Command Prompt as described below:
Windows 10 and Windows 8.1
Select the Start button (lower-left corner).
Type Command Prompt.
Right-click the Command Prompt icon, and select Run as administrator.
Select the Start button (lower-left corner).
Right-click Command Prompt and select Run as administrator.
From the drop-down list below, select your Office version and Windows version (32-bit or 64-bit) and run the commands as described.
- Select your Office and Windows version
- Office 2019 or 2016: 32-bit Office and 32-bit Windows
- Office 2019 or 2016: 32-bit Office and 64-bit Windows
- Office 2019 or 2016: 64-bit Office and 64-bit Windows
- Office 2013: 32-bit Office and 32-bit Windows
- Office 2013: 32-bit Office and 64-bit Windows
- Office 2013: 64-bit Office and 64-bit Windows
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files\Microsoft Office\Office15\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files\Microsoft Office\Office15\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files\Microsoft Office\Office15\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Tip: If you get an Input Error: Can not find script file. message, it means that you used the wrong command. Don’t worry, running the wrong command won’t hurt anything. Double-check your Office and Windows versions and try a different command.
Copy the following command, paste the command into the Command Prompt window, and then press Enter.
cscript «C:\Program Files\Microsoft Office\Office15\OSPP.VBS» /dstatus
The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.
cscript «C:\Program Files\Microsoft Office\Office16\OSPP.VBS» /unpkey:XXXXX
Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.
cscript «C:\Program Files\Microsoft Office\Office15\OSPP.VBS» /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
The default installation for Office is 32-bit but if your PC has more than 4 GB of RAM, you probably have 64-bit Windows.
If you don’t know which Office version is installed, see What version of Office am I using? To check whether Windows is installed as 32 or 64 bits, see Which Windows operating system am I running?
Now start an Office app, such as Word, and select Next to activate Office over the Internet.
Repeat this process for each PC where activation is failing.
How to change Product Key in Windows 10
You may for some reason need to change your Windows 10/8/7 product license key – maybe you want to upgrade your copy of Windows to a higher version, or maybe you want to change the default setup product key to a Multiple Activation Key. Follow these steps if you want to change your Windows product key.
Change your product key in Windows 7
If you wish to change your product key in Windows 7, click the Start button > Right-click Computer, and then select Properties.
Scroll down to the bottom of the window. Under Windows activation, click on Change product key.
Change your product key in Windows 10/8
Follow these steps to change your product key in Windows 10/8. Open the System properties applet in the Control Panel as follows: Control Panel> System and Security > System. You may also open the Win+X menu and select System. Click on Get more features with a new edition of Windows.
The following window will open. Click on I already have a product key.
Enter the product key and click on Next. Windows will now validate and then accept the key.
You can also change Windows product key by typing the following in an elevated command prompt and hitting Enter:
Activate Windows 10
Microsoft has simplified this process in Windows 8, and all you need to do is open Control Panel and navigate to System and Security > Action Center > Windows Activation. If you have not entered your Product License Key and/or not activated your copy of Windows, you will see a note to this effect in the Action Center. Click on the link to enter your License Key and Activate it. Make sure you are connected to the Internet.
You can also type slmgr.vbs -ato in the elevated CMD to activate your copy of Windows.
You can get more information here on how to activate any version of Windows. Once activated, you may wish to view the Licensing Status and Activation ID of your Windows OS with slmgr.vbs.
Go here if you find that the change product key link not available. This post will help you if you want to uninstall the Windows Product Key.