How to retrieve serial number of the operating system

How to retrieve serial number of the operating system

Page 1 of 1

4 Replies - 6501 Views - Last Post: 09 September 2009 - 06:26 PM Rate Topic: -----

#1 sri_hyd2804  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 15-May 08

How to retrieve serial number of the operating system

Post icon  Posted 15 May 2008 - 04:24 AM

How to retrieve serial number of the operating system
Is This A Good Question/Topic? 1

Replies To: How to retrieve serial number of the operating system

#2 zakary  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 27
  • View blog
  • Posts: 427
  • Joined: 15-February 05

Re: How to retrieve serial number of the operating system

Posted 15 May 2008 - 05:04 AM

What? What do you me are you looking for Nominal numbers or ASCII values

This post has been edited by zakary: 15 May 2008 - 05:05 AM

Was This Post Helpful? 0
  • +
  • -

#3 RodgerB  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 66
  • View blog
  • Posts: 2,284
  • Joined: 21-September 07

Re: How to retrieve serial number of the operating system

Posted 15 May 2008 - 03:03 PM

You can do this by accessing reading a registry key... don't trust me on this one as I'm in a rush, but I think it is this one:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

There should be a ProductKey value if you are running Windows XP. Look on the internet for some Registry I/O tutorials if you are unsure.

Hope that helps. :)
Was This Post Helpful? 0
  • +
  • -

#4 thor78  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 121
  • Joined: 06-May 08

Re: How to retrieve serial number of the operating system

Posted 15 May 2008 - 05:57 PM

Its actually Product Id. :) And that isn't the product key to activate Windows.

To access the registry programatically you first have to instantiate a RegistryKey with HKLM as your hive and SOFTWARE\Microsoft\Windows\CurrentVersion as the path to the key (product id). Then use Registry.GetValue() to retrieve the value. :D
Was This Post Helpful? 0
  • +
  • -

#5 iNutR  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 53
  • Joined: 09-June 09

Re: How to retrieve serial number of the operating system

Posted 09 September 2009 - 06:26 PM

{REMOVED}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1