Jump to content

Finding Windows Product Key

Go to solution Solved by dalekphalm,
Just now, Smell My Name said:

Awesome I can use this actually since I should be able to use the Digital License instead of the original key right? I suppose there is no actual real way for me to get the old windows 7 key either as well correct?

Correct - upon a Windows 10 upgrade, the Windows 7 key is converted into the Digital License. The old 7 key can still be used, if you happen to know what it is, but that info isn't stored in Windows 10 AFAIK.

So i lost my product key and i need it to reinstall windows on a pc build i built myself, I  used windows powershell with this script

(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

and i also made a vbs file using this script:

Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

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

 

 

 

When I use both scripts they show entirely different "product keys" and I don't know why.

Link to comment
https://linustechtips.com/topic/1001716-finding-windows-product-key/
Share on other sites

Link to post
Share on other sites

What Windows version is this?

Community Standards || Tech News Posting Guidelines

---======================================================================---

CPU: R5 9600X || GPU: RX 9070 XT|| Memory: 32GB || Cooler: Peerless Assassin || PSU: RM850e|| Case: Lian Li A3

Link to post
Share on other sites

4 minutes ago, Smell My Name said:

Windows 10 pro upgrade from windows 7 pro

With 10, the product key is either tied to the motherboard or your microsoft account, If you signed in.

 

I'd recommend tying it to your ms account just for ease of access. If you're reinstalling on the same machine though it should automatically verify the key through your motherboard

Community Standards || Tech News Posting Guidelines

---======================================================================---

CPU: R5 9600X || GPU: RX 9070 XT|| Memory: 32GB || Cooler: Peerless Assassin || PSU: RM850e|| Case: Lian Li A3

Link to post
Share on other sites

8 minutes ago, Slottr said:

With 10, the product key is either tied to the motherboard or your microsoft account, If you signed in.

 

I'd recommend tying it to your ms account just for ease of access. If you're reinstalling on the same machine though it should automatically verify the key through your motherboard

Agreed

 

@Smell My Name, if this is the same PC, with no new Hardware, all you need to do is reinstall Windows, and skip the "Enter a Product Key" part of the initial configuration. After you get to the desktop, it should activate automatically.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to post
Share on other sites

5 minutes ago, dalekphalm said:

Agreed

 

@Smell My Name, if this is the same PC, with no new Hardware, all you need to do is reinstall Windows, and skip the "Enter a Product Key" part of the initial configuration. After you get to the desktop, it should activate automatically.

The reason I am doing this is because I and upgrading the mobo and processor, getting a Ryzen 7 processor.

Link to post
Share on other sites

1 minute ago, Smell My Name said:

The reason I am doing this is because I and upgrading the mobo and processor, getting a Ryzen 7 processor.

In that case, there are specific steps Microsoft has put out to prepare the computer for the upgrade:

https://support.microsoft.com/en-us/help/20530/windows-10-reactivating-after-hardware-change?ranMID=24542&amp;ranEAID=kXQk6*ivFEQ&amp;ranSiteID=kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg&amp;epi=kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg&amp;irgwc=1&amp;OCID=AID681541_aff_7593_1243925&amp;tduid=(ir__ojfcogv30wlk9hqsk0hefvznje2xhxpvvnpib2pu00)(7593)(1243925)(kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg)()&amp;irclickid=_ojfcogv30wlk9hqsk0hefvznje2xhxpvvnpib2pu00

 

Because you upgraded from 7 to 10, you don't actually have a Product Key for Windows 10. Instead, you've got a "Digital License".

 

TL;DR, you need to associate your Windows 10 license with a Microsoft Account, then when you reinstall Windows, sign in with that account and run the activation troubleshooter. See my link for detailed steps.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to post
Share on other sites

5 hours ago, dalekphalm said:

In that case, there are specific steps Microsoft has put out to prepare the computer for the upgrade:

https://support.microsoft.com/en-us/help/20530/windows-10-reactivating-after-hardware-change?ranMID=24542&amp;ranEAID=kXQk6*ivFEQ&amp;ranSiteID=kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg&amp;epi=kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg&amp;irgwc=1&amp;OCID=AID681541_aff_7593_1243925&amp;tduid=(ir__ojfcogv30wlk9hqsk0hefvznje2xhxpvvnpib2pu00)(7593)(1243925)(kXQk6.ivFEQ-OdtUUDIvG1xVCs0DtgbKgg)()&amp;irclickid=_ojfcogv30wlk9hqsk0hefvznje2xhxpvvnpib2pu00

 

Because you upgraded from 7 to 10, you don't actually have a Product Key for Windows 10. Instead, you've got a "Digital License".

 

TL;DR, you need to associate your Windows 10 license with a Microsoft Account, then when you reinstall Windows, sign in with that account and run the activation troubleshooter. See my link for detailed steps.

Awesome I can use this actually since I should be able to use the Digital License instead of the original key right? I suppose there is no actual real way for me to get the old windows 7 key either as well correct?

Link to post
Share on other sites

Just now, Smell My Name said:

Awesome I can use this actually since I should be able to use the Digital License instead of the original key right? I suppose there is no actual real way for me to get the old windows 7 key either as well correct?

Correct - upon a Windows 10 upgrade, the Windows 7 key is converted into the Digital License. The old 7 key can still be used, if you happen to know what it is, but that info isn't stored in Windows 10 AFAIK.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×