View installed Windows 10 license key
The other day I had some issues activating my Windows 10 product key in VirtualBox, so I hopped on a support chat with a Microsoft agent. When she was unable to view my activation key in my system settings, she pasted this script on my machine and executed it. It shows the product name, product id and installation key of the machine it’s executed on. I thought I’d share it as it might be useful for more Windows users.
Save this as get-windows-product-key.vbs
, right click it and select Open with Command Prompt
. It will show your Windows product key and store it as Windows Key.txt
in the same directory as where you’ve saved the script.