-1

How to get serial number for all of computer's hardware via C#.Net? Like Mouse, Keyboard, Speaker, Printer and so on?

And is it possible to get name of company and model of them?

thanks.

dsolimano
  • 8,870
  • 3
  • 48
  • 63
  • Duplicate of [How to fast get Hardware-ID in C#?](http://stackoverflow.com/questions/2333149/how-to-fast-get-hardware-id-in-c). – Omar Apr 15 '12 at 19:51
  • What do you mean by "Serial Number"? – Paul Turner Apr 15 '12 at 19:53
  • Your best bet is to use WMI which I don't think has that information for _all_ of the computer's hardware (e.g. a generic PS/2 keyboard and mouse typically won't share that information with their host). – M.Babcock Apr 15 '12 at 19:57
  • possible duplicate of [How can I tie my application to specific hardware?](http://stackoverflow.com/questions/1574859/how-can-i-tie-my-application-to-specific-hardware) – H H Apr 15 '12 at 19:59
  • @HenkHolterman - Is it really a dupe? Sure they _could_ have similar answers though this one actually defines a (albeit thin) level of requirements and the other is (for all intents and purposes) about limiting an application to run on a single PC. – M.Babcock Apr 15 '12 at 20:03
  • @M.Babcock - right, it isn't a very close dupe. – H H Apr 15 '12 at 20:06
  • @HenkHolterman - (I liked your previous comment better) Won't flagging the wrong duplicate cause the "dupe consolidation mechanism" to merge invalid answers? – M.Babcock Apr 15 '12 at 20:08
  • see these: http://www.codeproject.com/Articles/28678/Generating-Unique-Key-Finger-Print-for-a-Computer http://www.codeproject.com/Articles/18522/Finger-Print-Class – nawfal Apr 15 '12 at 20:42

1 Answers1

0

This thread in MSDN is what you looking for.

for example:

string processor = RunQuery("Processor", "ProcessorId");
mammadalius
  • 3,263
  • 6
  • 39
  • 47