How to view your product key in windows

Lot of people who upgraded are to windows 10 faced a weird problem. They could not find the product key. Now, the product key was the most important asset you have explaining your authenticity to windows. But windows 10 have come up with a new way of identifying genuineness of users and that is digital entitlement. What sort of system footprints it includes in digital entitlement is still unclear. But, here in this article i am going to show you to still find the product key in any version of windows.

How to view windows  product key with powershell command

Just open powershell as admin and run the command given below.

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


How to view windows  product key

Step 1 – copy and paste the code given below in your notepad.

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Cur = 0
x = 14
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 as all files with name key.vbs on your desktop or anywhere you want.


Step 3 – Now, double click on it and you will get your product key displayed in a dialogue box.


Share on FacebookShare on Google+Tweet about this on TwitterShare on RedditShare on StumbleUponShare on LinkedIn

Leave a Reply

Your email address will not be published.