Find Windows 11 Product Key by Running a VBS Script
A VBS script is a file that contains Visual Basic code which can be executed by Windows. You can create and run a VBS script to find your Windows 11 product key by following these steps:
Step 1: Open a text editor such as Notepad and copy and paste the following code:
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
Step 2: Save the file by press Ctrl + S.
Step 3: Save the file as productkey.vbs on your desktop or any other location.
Step 4: Double-click on the productkey.vbs file to run it.
Step 5: A message box will pop up with your Windows 11 product key.
How to Find a Windows 11 Product Key?
Quick Solution!
Here is the easiest way to find Win 11 key. Simple follow these few steps.
Method 1: Win 11 Product Key Using CMD
- Open CMD, copy and paste the following command.
wmic path softwarelicensingservice get OA3xOriginalProductKey
- The product key for Windows 11 will be displayed on the screen.
Method 2: Win 11 Product Key Using ShowKeyPlus
- Press Win + S, type “Microsoft Store” > Search “ShowKeyPlus”> Install/Get the app.
- Open ShowKeyPlus > View the installed key.
This quick process simplifies finding your Win 11 product key, ensuring easy access and verification. For more methods check out the entire article.
A Windows product key is a 25-character code that activates Microsoft’s operating system on your computer. You require this unique product key to download and set up the latest version of Windows 11 onto your device from any source. There are different methods for you to find product key for Windows 11. In this article, we will show you five methods to find Win 11 key.
Table of Content
- Method 1: Find Windows 11 Product Key Using Command Prompt
- Method 2: Find Windows 11 Product Key Using Windows Registry Editor
- Method 3: Find Windows 11 Product Key Using Windows PowerShell
- Method 4: Find Windows 11 Product Key Using ShowKeyPlus
Contact Us