How To Get Windows Key From Cmd. Save it to a text file and save it off-site. That's what happens on a good day.
Right-click it and select "Run As Administrator" from the window that appears. Double click on the BackupProductKeyDefault to find the server key. That's it, this command will display the product key in the Command Prompt.
Right-click on Command Prompt, select Run as administrator, and select Yes if Windows asks you to allow access.
Next, type "cmd" in the textbox marked as Open, and then click the Ok button.
Double click on the BackupProductKeyDefault to find the server key. In case you will need the product. To do this, type "cmd" in the Windows search bar.