Error: The product is unlicensed. Connect to your corporate network or contact your system administrator.
Nowadays when you buy a new Laptop or Computer, It usually comes Windows 10 installed and Office 365 trial included.
If you have a subscription to Office 365 and want to use that on your new machine, sometimes there will be problem with activation. In my case this was because a trial licence key was already installed on the machine.
To solve this problem. We will need to remove the trial key through command line. Lets see how to do this.
Before doing this, open ‘credential manager’ in windows and clear all entries related to office 365.
Then open CMD. Windows+R >> CMD>> press enter.
Go to this directory: C:\Program Files\Microsoft Office\Office 16
Then type the command: cscript ospp.vbs /dstatus
This command will check if there are any licence keys installed on the computer and display the last 5 digits of the key. (eg: 3RG2K)
to remove the key from the system, run the following command:
cscript ospp.vbs /unpkey:3RG2K
After removing the key uninstall Office 365 that came with the computer. Then open office.com on any web browser. Login to the account with office 365 subscription. Open the payment and subscription tab. Your subscription will be listed here. There will be an install button alongside the subscription information.
Click on the install button to download the setup wizard. Run the exe file when download completes. This will download your version of office from internet. after installation, open word.exe this will ask you to activate.
click activate and login to your Microsoft account with the subscription. The office will get activated now.