Hi Friends,
Last week I was working on one window application. In this
application we have to get serial number of motherboard.
Following code describes how to get serial number of
motherboard.
You need to add
a reference to
System.Management.dll
to your project.
|
In the above code
- 1. "\\root\\cimv2: root is
because it's the root of the tree.
cimv2
is actuallyCIMv2
, because it's version 2 of the CIM (Common Information Model). - 2. ManagementScope() : Initializes a new instance of the Management Scope class, with default values. This is the default constructor.
Happy Programming ! !
If you have any query
mail me to Sujeet.bhujbal@gmail.com
Regards
Sujeet Bhujbal
--------------------------------------------------------------------------------------------------------------------
Personal Website :- http://sujitbhujbal.wordpress.com/
Facebook :- www.facebook.com/sujit.bhujbal
CodeProject:-http://www.codeproject.com/Members/Sujit-Bhujbal
Linkedin :- http://in.linkedin.com/in/ sujitbhujbal
Stack-Exchange:
http://stackexchange.com/users/469811/sujit-bhujbal
Twitter :- http://twitter.com/SujeetBhujbal
JavaTalks :-http://www.javatalks.com/Blogger/sujit9923/
------------------------------------------------------------------------------------------------------------------------
Hi,
ReplyDeleteYour article are really awesome.actually i was in search for some good articles on Operating system info and processor info in c# and finally i got one.