Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hello There!

So my friend is having some isssues finding his cd key that he has on his PC installed at the moment.

here is what happend.
When ever he reinstalled windows his key doesnt show up anywhere.

So I was wondering if there is any code I could try working with in C# .NET Visual-Studio as a console application that would locate some general informationa about his PC such as the Windows Key since it is there in the reg file somewhere, I saw some shellbase scripts that only worked for me (W8.1)& since he doesnt have win 8.1 and have Window 7 and it didnt work.

If anyone has any suggestions I would love to hear them & also if I am posting this in the wrong place feel free to tell me.
Thanks!
Posted
Updated 17-Dec-15 23:45pm
v2

1 solution

A little Google goes a long way. I found this script[^] in about 5 seconds.
 
Share this answer
 
Comments
BladeLogan 15-Dec-15 20:15pm    
Yeah see, thats what I also found, in about 5 seconds. The thing is, it doesnt work on his machine, so I scrambled up a little bit of code & I made it work. Thanks anyways!
phil.o 18-Dec-15 5:53am    
What do you mean by 'it doesn't work'? What is returned? Is there any error message? It could just be that the user does not have the rights to read the registry.
BladeLogan 18-Dec-15 5:56am    
My bad I should of accepted a solution, I fixed it!
phil.o 18-Dec-15 5:59am    
Ok, no problem. Would you mind formally accepting Dave's answer as a solution, so that your question is correctly flagged as answered? Thanks :)
BladeLogan 18-Dec-15 6:00am    
Will do! Thanks for the help! :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900