473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get Product Keys

I have been assigned an application that is suppose to take an inventory of
machines including the product keys for the systems. System operating
systems included are Windows 2003, XP, 2000 and NT. Any ideas on how to get
this information on these computers in a vb.net Winforms app?

Thanks,
Kelly

Nov 14 '06 #1
3 5480
This will get you the product key.

http://www.planet-source-code.com/vb...4834&lngWId=10
"vbnetdev" <vb******@community.nospamwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>I have been assigned an application that is suppose to take an inventory of
machines including the product keys for the systems. System operating
systems included are Windows 2003, XP, 2000 and NT. Any ideas on how to get
this information on these computers in a vb.net Winforms app?

Thanks,
Kelly



Nov 14 '06 #2
This I was aware works with 2000 and XP. Do you know if it will work with
Win Vista, 2003, NT and 98?


"Terry Olsen" <to******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
This will get you the product key.

http://www.planet-source-code.com/vb...4834&lngWId=10
"vbnetdev" <vb******@community.nospamwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>I have been assigned an application that is suppose to take an inventory
of machines including the product keys for the systems. System operating
systems included are Windows 2003, XP, 2000 and NT. Any ideas on how to
get this information on these computers in a vb.net Winforms app?

Thanks,
Kelly




Nov 15 '06 #3
Hi Kelly,

The sample that Terry provides works with Windows NT, 2000, XP, 2003 and
Vista.

In Windows 95, 98 and Me, Windows product key is stored in plain text in
the Registry and in the file system.dat. It resides in the
"HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows\Cur rentVersion" registry
branch. For Windows 95, the registry key is "ProductID" and for Windows 98
and Me, the registry key is "ProductKey". So, for these platforms, you
should change the registry branch and key in the function to get the value
of the product key.

As for the OS platform, you could use Enviroment.OSVersion.Platform to
determine what type of the platform the application is run on.

Hope this helps.
If you have anything unclear, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randell D. | last post by:
Folks, My internet access is intermitent until I get my own connection inside the next ten days - I say this so that I can thank in advance who ever gives a few seconds to read/answer my...
11
by: Girish Sahani | last post by:
I wrote the following code to concatenate every 2 keys of a dictionary and their corresponding values. e.g if i have tiDict1 = tiDict1 = {'a':,'b':} i should get tiDict2={'ab':} and similarly for...
14
by: vatamane | last post by:
This has been bothering me for a while. Just want to find out if it just me or perhaps others have thought of this too: Why shouldn't the keyset of a dictionary be represented as a set instead of a...
4
by: Ted | last post by:
Understand, I have developed a number of applications using RDBMS, including MySQL, PostgreSQL and MS Access, but this is my first experience with MS SQL. I'd bet my bottom dollar that MS SQL...
3
by: Mark Ingram | last post by:
Hi, I'd like to know the best way of checking the current time during a demonstration product. At the minute i store the first run date, then compare that to the system time, but obviously a user...
2
by: Zender | last post by:
I'm currently working on a program that generates strings of random characters (up to 7 strings, and up to 8 characters per string), which look much like those of the product keys of programs like...
5
by: jason.teen | last post by:
Hi, I'm trying to create Keys with different prefix characters for each product I have. So for every product requires a different prefix character, but the number will auto increment by itself...
1
by: =?Utf-8?B?Q0FT?= | last post by:
Hi When I tryu to get my product keys either from the product "Obtain Product Key" og going directly to the page Product Keys, I get this error: Error: 11083...
2
JnrJnr
by: JnrJnr | last post by:
I have two SQL database tables. One contains various products(with unique primary keys) and the other contains information related to the products aswel as the product's foreign keys. What I want...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.