Create a VBS file (e.g., officekey.vbs ) using CMD:
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Registration /s Look for a key named DigitalProductID – but this will be binary, not readable directly. how to check microsoft office license key using cmd
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus Then note the last 5 characters and match them with your purchased key or Microsoft account. Technical Documentation Team Date: [Current Date] Version: 1.0 Create a VBS file (e