Your only option is to keep track of your device installs and the corresponding Office versions. The bottom line is there is no way to obtain the full Product Key using commands or third-party software unless you use Office 2010 or earlier. The image below applies to Microsoft Office 2013 and newer, even though they are pushing their 365 subscriptions. Unfortunately, Microsoft made changes beginning with Office 2013, where only the last five digits of the product key get stored on your PC.
Each one has specific methods for installation and reinstallation, as well as how the product key gets stored and used.
There are four types of Microsoft Office software: Retail, Subscription, Volume, and OEM. It’s difficult to find, so you might be panicking while trying to remember the lost activation code.
You’ll see the last five characters of your Office product key.Type the following: cscript “C:\Program Files (x86)\Microsoft Office\Office16\OSPP.vbs” /dstatus and press “Enter.” Your location of OSPP.vbs may vary.