How to list OS product key?

(imported topic written by bearandy)

We want to list OS product key.

And I found an analysis “OS Product Key - Windows”

But it just show Unknown. It seems only suitable for Win98 95 ME.

Is there an analysis to list OS product key for WinXP OR Win7?

Thanks for answer.

(imported comment written by Lee Wei)

Hi Andy,

Windows product keys or serial numbers are encrypted in later versions of Windows and we cannot read them directly using relevance.

There are 2 ways that others have handled this using an external program or VBScript.

Using a 3rd party key finder program:

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14748060

Using VBScript:

https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14750435

Lee Wei

(imported comment written by bearandy)

Hi, Lee Wei

I tried the second method.

And WinXP seems work.

But Win7 show the blank label.

Did I have to modify something or it just for WinXP.

(imported comment written by SystemAdmin)

Suggested Reading : http://pcsupport.about.com/od/productkeysactivation/ht/windows-7-key.htm