One of the problems I run into frequently, especially with Office 365 apps in a business environment is Office Applications showing as unlicensed. Running a repair install or sometimes completely reinstalling Office fails to fix the issue. This often happens when a new staff member uses a device that was used by a different staff member previously and Office seems to retain some of their license info.
This issues is easily resolved in a few minutes by removing the old Office Product Keys by running the following commands
Instructions
- Open an elevated command prompt(Click start menu and type in CMD and right click and select Run As Administrator)
- Enter the following command for 32 bit versions of Office and press enter
cd "C:\Program Files (x86)\Microsoft Office\Office16"
- Enter the following command for 64 bit versions of Office and press enter
cd "C:\Program Files\Microsoft Office\Office16"
- Run the following command. The ospp.vbs command generates a report of the licenses currently in use.
cscript ospp.vbs /dstatus
- This will output a list of Office licenses in use (showing the last 5 characters of the product key (as per below)
- Remove all listed licenses by entering the following command.
Use the last five digits of the product key as highlighted in the image above. See bellow for an example.
cscript ospp.vbs /unpkey:F6WGP
- Once you have run the cmd above for all product keys listed open any Office application (Word, Excel, Outlook etc) and it should be no longer say Unlicensed Product and be activated correctly.