Windows key command to display licence
Add the following commands to the PowerShell command line and confirm by hitting “Enter.” (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey Enter "cmd" in the search box on the taskbar and open Command Prompt. Enter the command wmic path SoftwareLicensingService get OA3xOriginalProductKey and press Enter. The text displayed in the following format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX is the product key.