How to view the product key in Windows

Visited Popular Recent Discussed Valued Shared
Who I am
Philippe Gloaguen
@philippegloaguen
SOURCES CONSULTED:

support.microsoft.com

Author and references

Many people who have upgraded to Windows 10 have encountered a strange problem. They couldn't find the product key. Now the product key was the most important resource he had in explaining its authenticity to Windows. But Windows 10 has created a new way to identify user authenticity and that's the digital law. It is not yet clear what kind of fingerprints the system includes in the digital rights. But, here in this article, I'll show you how to find the product key in any version of Windows.



How to view the Windows product key with the PowerShell command

Just open PowerShell as administrator and run the command given below.

Get-WMIObject -Class SoftwareLicensingService | Select-Object -Property *

How to view the Windows product key

Step 1: Copy and paste the code given below into your notepad.

Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(x + KeyOffset) = (Cur 24) And 255 Cur = Cur Mod 24 x = x -1 Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -1) Then i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput End Function

Step 2 - Now save all files with the name key.vbs on your desktop or wherever you want.



3 pass - Now, double click on it and you will see your product key in a dialog box.

.

add a comment of How to view the product key in Windows
Comment sent successfully! We will review it in the next few hours.