473,382 Members | 1,651 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,382 software developers and data experts.

How Can I get the Processor Id from my computer

Hi group, I´m working with a .NET application and I need to know the
Processor ID or Motherboard ID. Is there a way to get it?

Thanks so much.

JMAB, Guadalajara, México.
Nov 22 '05 #1
3 6512
string s = "SELECT SerialNumber FROM WIN32_BaseBoard";
System.Management.ManagementObjectSearcher oWMI = new
System.Management.ManagementObjectSearcher(s);
System.Management.ManagementObjectCollection oSerialNumbers = oWMI.Get();

foreach (System.Management.ManagementObject mo in oSerialNumbers)
{
Console.WriteLine("Serial Number: " +
mo.Properties["SerialNumber"].Value.ToString());
}

"Juan Manuel AlegrÃ*a B." wrote:
Hi group, I´m working with a .NET application and I need to know the
Processor ID or Motherboard ID. Is there a way to get it?

Thanks so much.

JMAB, Guadalajara, México.

Nov 22 '05 #2
Thaks for your help, I already tested the example and It works perfect.

There is only a problem. I made an asembly to test it in several
computers, but in some computers doesn't return the serial number I mean
returns as blank space or empty string. Do you know if I need to consider
something else.

Thanks...

"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
string s = "SELECT SerialNumber FROM WIN32_BaseBoard";
System.Management.ManagementObjectSearcher oWMI = new
System.Management.ManagementObjectSearcher(s);
System.Management.ManagementObjectCollection oSerialNumbers = oWMI.Get();

foreach (System.Management.ManagementObject mo in oSerialNumbers)
{
Console.WriteLine("Serial Number: " +
mo.Properties["SerialNumber"].Value.ToString());
}

"Juan Manuel Alegría B." wrote:
Hi group, I´m working with a .NET application and I need to know the
Processor ID or Motherboard ID. Is there a way to get it?

Thanks so much.

JMAB, Guadalajara, México.

Nov 22 '05 #3
Sorry, I don't know why it wouldn't work (or why the value would be blank).
There may be other values you could look at. Change the "SELECT SerialNumber"
to "SELECT *" and loop through the properties to see if there is another you
could use.

"Juan Manuel AlegrÃ*a B." wrote:
Thaks for your help, I already tested the example and It works perfect.

There is only a problem. I made an asembly to test it in several
computers, but in some computers doesn't return the serial number I mean
returns as blank space or empty string. Do you know if I need to consider
something else.

Thanks...

"gui_guru" <gu*****@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
string s = "SELECT SerialNumber FROM WIN32_BaseBoard";
System.Management.ManagementObjectSearcher oWMI = new
System.Management.ManagementObjectSearcher(s);
System.Management.ManagementObjectCollection oSerialNumbers = oWMI.Get();

foreach (System.Management.ManagementObject mo in oSerialNumbers)
{
Console.WriteLine("Serial Number: " +
mo.Properties["SerialNumber"].Value.ToString());
}

"Juan Manuel AlegrÃ*a B." wrote:
Hi group, I´m working with a .NET application and I need to know the
Processor ID or Motherboard ID. Is there a way to get it?

Thanks so much.

JMAB, Guadalajara, México.


Nov 22 '05 #4

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

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
1
by: Ola Natvig | last post by:
Hi all I'm working with a long running, threaded server which serves HTTP requests with content which are passed through a XSLT processor. The XSLT processor I'm using is the Pyana processor. ...
1
by: Collin VanDyck | last post by:
I've got a simple Java program: public class Test { public static void main(String args) { System.out.println("xalan class: " + ...
5
by: Jorch | last post by:
Hi, Can you help me?? Why code 1 eats up 100% of processor time when browser window is active and code 2 doesn't???? Do I use setTimeout wrong somehow??? Code 1 changes visibility of div...
2
by: john | last post by:
For example, if you have a dual-processor computer, and your process runs for an hour using 100% of both CPUs, would Process.TotalProcessorTime return a TimeSpan representing one hour or two? ...
1
by: Henrik | last post by:
I have a problem with processor load in the enviroment where I'm running the firts installation of my new application. My program is running on a Pentium 4 3.0 GHz, wtih 1 GB DDR SDRAM and 80 GB...
5
by: nano2k | last post by:
Hi I need to protect my application in a way. Just a "soft" protection, not a very strong one. So, using WMI I get the processor ID and compare it against a key. Protection works well, until...
10
by: WannaKatana | last post by:
I am just wondering why, with nothing else running and executing an update query against a very large table, does Access seem to be causing less than 10% processor usage. Then it says "There is not...
168
by: broeisi | last post by:
Hello, Is there a way in C to get information at runtime if a processor is 32 or 64 bit? Cheers, Broeisi
11
usafshah
by: usafshah | last post by:
in My Computer > Properties .. The processor is showing twice i mean two time although there is only one processor in my computer. that is 2.0 Ghz and its showing .. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.