Question

where in the registry does the cd key code reside

Asked by: rich9060

I just want to confirm the windows license code in the registry . i have checked in the local
machine/ microsoft/windowsnt and found the oem number and user and other info but
not the cd key number

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-12-22 at 12:07:36ID20832633
Tags

key

,

registry

,

windows

Topic

Windows XP Operating System

Participating Experts
29
Points
250
Comments
36

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Microsoft remotely checking registry?
    [Comments only please! I'll ask the submitter of the best answer to lock the question] I've heard that Microsoft can remotely check the registry of Win98 machines connecting to their site to discover info about applications (possibly to detect illegal copies). I'am interes...
  2. Registry Corruption Problem with OEM Install
    My laptop computer started acting funky (although the configuration had not recently changed) and, after a reboot, I got the lovely blue screen of death message: STOP:C0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\Softw...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: pr0m3th1usPosted on 2003-12-22 at 12:08:58ID: 9987136

I don't think that information is stored inside the registry for security reasons.

 

by: war1Posted on 2003-12-22 at 12:09:34ID: 9987142

Greetings, rich9060!

CD Key Finder: Magical Jellybean
http://www.magicaljellybean.com/keyfinder.shtml

Best wishes, war1

 

by: pr0m3th1usPosted on 2003-12-22 at 12:11:43ID: 9987157

I stand corrected... :)

 

by: LRI41Posted on 2003-12-22 at 12:42:20ID: 9987325

FINDING LOST CD KEYS IN YOUR REGISTRY  
http://www.internetguideandmore.com/finding_lost_cd_keys_in_your_reg.htm

You can find your lost cd key from your own registry with the steps below:
(This procedure does not work for any version of Windows past Windows Me, Microsoft got more secretive with your software, one more time.)
Make the CD code to unlock software reappear. (Here's the article verbatim) You just think you lost that CD key code, which is imprinted on the software's box or in the documentation and permits you to reinstall the program.
You won't have to call a support line and wait hours for a tech to regurgitate that lost code for you, it's not really lost. Windows saved it in a cubbyhole called the Registry.
Don't play around while you go through these steps, though. Deleting some Registry files can cause massive headaches.
And it's always best to follow your manual's instructions and back up the registry before starting.
Here's the procedure:
·        Launch REGEDIT by selecting Start/Run, typing REGEDIT in the text box and pressing Enter.
·        Under HKEY_LOCAL_MACHINE, click on the + and scroll down to Software.
·        Find the Microsoft listing click on it, and look for the directory that contains software you need to reinstall.
·        Double-click the Product ID listing and select the middle two number strings. For example, in the string 53491-460-1656111-49145, you'd select 460-1656111. (for Office 97)   One more thing, add a 1 to the first 3 numbers, 4601-1656111, as the product ID has 11 numbers.  Hope this works for you!
·      To find the Windows CD Key:  find Windows, click the "current version" with the + sign, don't click the +sign, click on the words "current version".  The product ID and the product key will appear.  It's all the numbers and letters that you see.  
·        Highlight,  Press Control C to copy the CD key to the clipboard, then paste it someplace where you can reuse it. Some experts advise compiling all your keys to a text document, then printing it out for safekeeping.  
 
Attention!  I cannot give you cd keys to your programs.  It is illegal for me to do so.  If you have lost the product ID, cd key, you will need to find it another way.  Sorry I can't be of more help.  I have contacted Microsoft for some of my clients who have lost their cd keys, or were never given them at the store and they have been very kind.  Usually with a proof of purchase, you can get some information from the manufacturer.  And if your cd key does not work on your installation, you can also call for free technical help from many manufacturers.  Hope this is helpful.  Hang onto those product IDs!

http://www.internetguideandmore.com/finding_lost_cd_keys_in_your_reg.htm


**********************************************

roduct key from DOS


      Try this link:

   http://www.dougknox.com/utility/scripts_desc/cdkey_dos.htm

Finding the CD (Product) Key from DOS

If you can't boot into Windows at all, then you can boot with a Startup Disk (CD support is not required) or into Command Mode Only and type the following command:

For 95:

C:\Windows\Command\Find /I "ProductId" c:\windows\system.dat

For 98/Me:

C:\Windows\Command\Find /I "ProductKey" C:\Windows\System.dat

The first line of the screen dump will look like this:

ProductKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX where the X's are your actual CD Key.

NOTE: This will not work in Windows XP

This page last updated 05/03/2003 19:41
All material © Doug Knox  
            

 

by: xz4gb8Posted on 2003-12-22 at 13:48:59ID: 9987770

See also http://www.belarc.com for their free-for-noncommerical-use advisor.  It will give all that you want.

 

by: MaNiAcLRSCPosted on 2003-12-22 at 16:08:50ID: 9988565

With this tool you can extract every CD Key for Windows XP, Office etc.
http://www.aida32.hu/aida32.php

It's the best tool you can get.


Cheers!
Mike

 

by: sramesh2kPosted on 2003-12-22 at 23:27:36ID: 9989897

In Windows XP, the product key stored in DigitalProductID Registry key. But, it is no longer available as clear text in registry. You need a software to view the key:

http://www.webtree.ca/windowsxp/ViewKeyXP.exe

 

by: rameshsamalaPosted on 2004-01-13 at 10:48:42ID: 10106710

HI,

 You can found the CD key of OS in Registry

1. Type the regedit in the run.
2. Under Regestry  HKEY_LOCAL_MACHINE
                            SOFTWARE
                            MICROSOFT
                            WINDOWS
                            CURRENT VERSION

  in that find  productkey

 

by: ksmjPosted on 2004-01-14 at 08:17:58ID: 10112083

you can use some software such as ViewKey which can be downloaded from here
http://www.michaelstevenstech.com/ViewKeyXP.zip

 

by: pr0m3th1usPosted on 2004-01-14 at 10:59:45ID: 10113357

Why do people continue to post when this question has been accepted already?

ksmj, ViewKey was already suggested by sramesh2k.

Mike

 

by: ksmjPosted on 2004-01-14 at 21:39:20ID: 10117876

well, din notice his link on it. Just another suggestion in case anyone else who might need it in the future, not necessarily answering yours. This can be helpful if the some other links is dead etc in the future.

that shouldn't be a crime or anything wrong to post suggestions to share it with the rest of the community, i assume so. After all, we can learn quite a few things from different suggestions.

 

by: JRosenfeldPosted on 2004-01-20 at 06:55:39ID: 10155209

If Windows XP is OEM installed when a PC is purchased, the Product ID shown in the registry is the one used by the PC manufacturer during install, not your own key. That should be on a label on the PC.

 

by: exquisite_assassinPosted on 2004-02-28 at 19:10:01ID: 10478663

FYI, if you have an OEM version of software, Microsoft WILL NOT support it. You will be SOL. Further, many OEM computer manufacturers will not replace OS CD Keys 30 days after purchase. Dell included unless you are a huge stinking large business contract, then everything changes ;-)

 

by: jezzzeroPosted on 2004-03-12 at 02:23:03ID: 10579347

I appreciate the link provided 2 replies back.  I didn't catch the link provided by anyone else before that link. I appreicate the link provided by ksmj.

 

by: abrogardPosted on 2004-03-13 at 21:18:53ID: 10590908

That's an incredible suggestion about Microsoft not supporting OEM installations if I read it right...  You mean you buy a computer with XP (say) installed (part of the reason you bought it at that price) and then Microsoft will not give you the support they'd give people who bought the software seperately ?

 

by: sparky4caPosted on 2004-04-30 at 00:19:03ID: 10956841

Yes, that's right. instead of paying $500 CDN for XP Pro or $300 CDN for XP home, you pay about $279/$145. In return for the discount you and the OEM mnufacturer are egtting, MS doesn't provide support.

 

by: wileedingoPosted on 2004-06-30 at 07:53:36ID: 11436465

I have no problems with supportless OEM software products.

It's not that often that you actually need support from MS. So on those rare occasions that you need help with your OEM version, pay for some support.  As long as the bill comes to $221/$155 or less (based on the above prices), then you're okay. Plus, you've put a few bucks into some local kid's pocket instead of Mr. Bill's. Nothing wrong with that, and no one is really getting ripped off, are they?

As for Dell, the one time that I required OS support, some guy helped me completely solve my OS problems no questions asked, and that was well over a year after I bought my pc.

wileedingo

 

by: dudecybetronPosted on 2004-07-08 at 08:06:23ID: 11502810

in win xp pro,

 u can find the plain text product key in documents and settings/user folder.  there edit ur ntuser.dat file and u can find the product key.u cant view ur current ntuser.dat but can edit other users ntuser.dat file to c the product key.

 

by: Jito463Posted on 2004-07-12 at 11:56:45ID: 11532265

dudecybetron: No, the ntuser.dat file does not contain the product key.  Just to verify, I opened it up in both a text editor and a hex editor.  No sign of the product key from this machine.

 

by: rameshsamalaPosted on 2004-07-17 at 11:19:25ID: 11575302

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion


in that check out product key

 

by: wileedingoPosted on 2004-07-17 at 13:19:12ID: 11575646

As has been pointed out, the product key can only be gotten from the registry for windows ME and earlier.  For 2000, NT4, and XP you must use one of the key finding programs listed above.  In particular, the Belarc product suggested by xz4gb8 is excellent.

Oddly enough, I tried three of the programs and they all agreed with each other on the product key, but not with the sticker on the outside of the box (it's an OEM installation on a Dell). Wonder what's up with that?  Could a copy of XP Pro have two (or more) product keys which work?

 

by: Jito463Posted on 2004-07-17 at 21:57:20ID: 11576806

You'll find that's the case on most major OEM's anymore.  They use one key for ALL installations across a specific model, then stick a unique COA (sometimes) on the outside of the machine.  On the plus side, they're technically giving you two PK's, though legally you still only have one licence.

 

by: lynx20Posted on 2004-08-26 at 13:07:53ID: 11906900

So I gather that the supportless OS includes security patch downloads from Microsoft.  I have run into this on XP Pro [a formerly ME system with OS & CPU upgraded through a local computer store] receiving a message along the lines that the product id is invalid.

 

by: ShineOnPosted on 2004-08-31 at 16:05:52ID: 11947733

Product ID and CD key are 2 different things.  Non-OEM and non-SA (Software Assurance) product keys will generate a product ID that requires activation by Microsoft, which essentially validates the product for use on the hardware it's on at the time.  If you have XP that required activation, and change a few pieces of hardware, you have to get a new activation code from M$.

 

by: qualservePosted on 2004-09-08 at 20:57:25ID: 12012963

I buy nothing but OEM Windows software.  lynx20: It is fully supported for security updates and Service packs.  Your local computer store has messed up during the upgrade. The "support" you don't get is answers to your questions regarding installation, problems after installation and such.  Getting a new activation code has also never been a problem when I have updated/changed hardware, it is a matter of a 10 minute Toll Free phone call.
Also, AIDA32 in no longer available from the company web site.  Hopefully, someone can provide you this excellent program.  It reads the key for both versions of XP, Win 2003, and all versions of Microsoft Office., as does the Jelly Bean program which is linked in a previous response.

 

by: telldanthisPosted on 2004-09-19 at 10:01:27ID: 12096229

Qualserve i have aida32 and i can see that it shows windows2000 key, but where and how can i see my office2000 key with this excellant software ?

tia

 

by: jjjtuohyPosted on 2004-09-21 at 03:08:21ID: 12110540

ALL,
Just a small observation....it's heartlifting to see that the spirit of altruism lives on, even after the answer has been chosen. I've learnt a few little gems in the resulting postings. Nice one people!!
John

 

by: defkitPosted on 2004-10-05 at 06:18:52ID: 12226284


To get a product key of office 2000
just logon to this url and
register some information and you can get the product id

http://www.microsoft.com/office/trialkey

dev

 

by: quantum2Posted on 2004-10-14 at 23:54:44ID: 12316573

Another suggestion for those who already have this.
Norton System Works will give you this information in its System Info tool. The CD key for any Windows version (Including NT, 2000 and 2003AS).

Q2

And your right.... there are some great people on this site. I always get excellent help.

 

by: NoHackrLtdPosted on 2004-11-12 at 08:06:52ID: 12567106

Belarc Advisor - shows everything you wanted to ask about your computer, but didn't know where to type in the request...(grin)

www.belarc.com     free for personal use.  Has pulled my butt out of the wringer many times...

 

by: JamminPosted on 2004-11-25 at 22:05:36ID: 12678926

 

by: dabombtomPosted on 2004-11-29 at 00:29:55ID: 12694038

Instaed of wading through the registry the far simpler way to get your Product Key is

Right click My Computer
Click properties
Under Registered To will be name, company, then product key like this

Registered To:
       Tom
       TechToast
       55274-640-7593542-23100

And just for information, if the 2nd string of digits is 640, then your copy of XP is most likely to be legal.

 

by: JLittle2Posted on 2004-12-28 at 06:56:08ID: 12912518

For XP SP2 ViewKeyXP no longer works. MichaelStevensTech.com has a new Keyfinder for SP2.
http://www.michaelstevenstech.com/keyfinder.exe

 

by: Jamie_OrchisonPosted on 2005-06-09 at 12:19:12ID: 14182938

Can you please close the question...

THX

 

by: gecko_au2003Posted on 2005-09-05 at 15:53:24ID: 14825781

First of all if you are using windows xp the key code is stored here :

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows NT\CurrentVersion\DigitalProductId

As you notice it is encrypted in the DigitalProductId

Here is a PAQ regarding that ( which is btw very useful ) :

http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21236913.html

And I asked a question on how to do this via vbscript and the script is below ( With some additions ) :

'----------------------------------------

Public Function sGetXPCDKey()

    Dim bDigitalProductID
    Dim bProductKey()
    Dim bKeyChars(24)
    Dim ilByte
    Dim nCur
    Dim sCDKey
    Dim ilKeyByte
    Dim ilBit
       
    ReDim Preserve bProductKey(14)
   
    Set objShell = CreateObject("WScript.Shell")
   
    bDigitalProductID = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows NT\CurrentVersion\DigitalProductId")

    Set objShell = Nothing

    For ilByte = 52 To 66
      bProductKey(ilByte - 52) = bDigitalProductID(ilByte)
    Next
 
    'Possible characters in the CD Key:
    bKeyChars(0) = Asc("B")
    bKeyChars(1) = Asc("C")
    bKeyChars(2) = Asc("D")
    bKeyChars(3) = Asc("F")
    bKeyChars(4) = Asc("G")
    bKeyChars(5) = Asc("H")
    bKeyChars(6) = Asc("J")
    bKeyChars(7) = Asc("K")
    bKeyChars(8) = Asc("M")
    bKeyChars(9) = Asc("P")
    bKeyChars(10) = Asc("Q")
    bKeyChars(11) = Asc("R")
    bKeyChars(12) = Asc("T")
    bKeyChars(13) = Asc("V")
    bKeyChars(14) = Asc("W")
    bKeyChars(15) = Asc("X")
    bKeyChars(16) = Asc("Y")
    bKeyChars(17) = Asc("2")
    bKeyChars(18) = Asc("3")
    bKeyChars(19) = Asc("4")
    bKeyChars(20) = Asc("6")
    bKeyChars(21) = Asc("7")
    bKeyChars(22) = Asc("8")
    bKeyChars(23) = Asc("9")

    For ilByte = 24 To 0 Step -1
     
      nCur = 0

      For ilKeyByte = 14 To 0 Step -1
        'Step through each byte in the Product Key
        nCur = nCur * 256 Xor bProductKey(ilKeyByte)
        bProductKey(ilKeyByte) = Int(nCur / 24)
        nCur = nCur Mod 24
      Next
     
      sCDKey = Chr(bKeyChars(nCur)) & sCDKey
      If ilByte Mod 5 = 0 And ilByte <> 0 Then sCDKey = "-" & sCDKey
    Next
   
    sGetXPCDKey = sCDKey
      
   
End Function

Public Function Question()
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim Ans

Ans = MsgBox("Yes = Write Windows XP Serial key to the C Drive and No = Prompt with Serial key",4)

If Ans = vbYes then

Set oOutFile = objFSO.CreateTextFile("c:\XP_Serial_Key.txt")

oOutFile.WriteLine sGetXPCDKey
else
wscript.echo sGetXPCDKey
End If
End Function

call Question

'----------------------------------

Hopefully this helps and also straightens some things out, with regards to windows 9X ie windows 98 , windows millenium etc the registry key here :

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Would be correct but since it is windows xp it works differently :)

I also have a vbscript to get the windows 9X code which is below :

'------------------------------

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
pk = WshShell.RegRead("HKLM\software\microsoft\windows\currentversion\productkey")
pkf = fso.GetSpecialFolder(2) & "\pk.txt"
Set f = fso.CreateTextFile(pkf,True)
f.WriteLine(pk)
f.Close
AskPrt = MsgBox("Product Key is " & pk & vbcrlf & vbcrlf & "Do you want to print it?",36)
If AskPrt = 6 Then WshShell.Run "notepad /p " & pkf,2,1
fso.DeleteFile(pkf)

'--------------------------------------------

Sorry for the long post but just wanted to make this a useful PAQ :)


20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...