Product Key Windows Server 2016

The Stone Store 21 Reputation points
2022-12-01T21:57:49.977+00:00

my server 2016 crashed - was able to run disk repair from another computer in order to get it to boot again. I ran the vbs script below. I got back a code that MS is telling me is not valid.

I talked to a licensing tech and he gave me this command to run from powershell (as administrator) - " wmic path softwarelicensingservice get oa3xoriginalproductkey " - it only returned " oa3xoriginalproductkey ".

Does anyone have an idea on how I can get the product key? I need to replace this drive but don't have the key (it was on a DVD case that is missing - this is not a digital license).

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

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,535 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,361 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-12-01T22:52:24.13+00:00

    https://letmegooglethat.com/?q=windows+product+key+finder+tools

    --please don't forget to upvote and Accept as answer if the reply is helpful--


2 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-12-01T22:02:17.147+00:00

    Might try the nirsoft tool ProduKey.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Anonymous
    2022-12-01T22:21:48.963+00:00

    Sounds good, it is not malware. There are several others you can try as well. Also, unlikely but ask the seller if they have a record.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.