How to Find Windows Product Key Installed in your PC using Notepad

How to Find Windows Product Key Installed in your PC using Notepad:- Today in this article I’m going to tell you about How to Find Windows Product Key Installed in your PC using Notepad in a very simple way. So please read out this article till the End in order to Find Windows Product Key Installed in your PC using Notepad.

Introduction

If you also want to find out the Product Key of the Operating System like Windows 7,8,10, or 11 installed in your computer, then you have to copy the script given below in this article and follow the steps below. You will be able to find out the Product Key of the operating system very easily.

Follow The Steps

Step 1:- First of all Open Notepad in your system, in order to open notepad in your system search for notepad in the search bar of your system or simply Press “Windows Key + R “, then run command will be open and Type “NOTEPAD” and then click Enter your notepad will be opened.

How to Find Windows Product Key Installed in your PC using Notepad

Step 2:- Copy the Script that is Given Below and paste it, into your notepad file.

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
How to Find Windows Product Key Installed in your PC using Notepad

Step 3:- Now you have to save this file.

Step 4:- In Order to save this file, click on the file that is on the left upper side of the student, and click on save as or simply Press ” CTRL + S” from your keyboard.

Step 5:- Now select the desired location where you want to save this file.

Step 6:- Rename This File with a .vbs extension like “product.vbs” and file type All Files, Please check out the given below image for more clarification.

How to Find Windows Product Key Installed in your PC using Notepad

Step 7:- Now run this file, after running this file your Product Key will be on your screen.

How to Find Windows Product Key Installed in your PC using Notepad
How to Find Windows Product Key Installed in your PC using Notepad

Important Terms

What are OEM keys?

OEM keys are those which are installed in the device by the manufacturer.

Disadvantages Of OEM Keys.

The main disadvantage of OEM keys is that they can’t be transferred from one machine to another machine, once it is installed into the machine then it will be only yours.

Also Read

FAQ

Q1. Can we use this script to find out windows 10 or 7 too?

Yes

Will This script Find the windows 10 product key?

Yes, This script will definitely find the windows 10 product key.

1 thought on “How to Find Windows Product Key Installed in your PC using Notepad”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.