Re: How Can I get the Processor Id from my computer
From: gui_guru (guiguru_at_discussions.microsoft.com)
Date: 01/18/05
- Next message: Terry: "Select row of Datagrid, and disable single cell selection."
- Previous message: sameer: "Shadow of a closed form"
- In reply to: Juan Manuel Alegría B.: "Re: How Can I get the Processor Id from my computer"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 08:49:01 -0800
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" <guiguru@discussions.microsoft.com> wrote in message
> news:7CA4DF99-D785-4EA8-AC54-07E510CC4E02@microsoft.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.
> > >
> > >
> > >
>
>
>
- Next message: Terry: "Select row of Datagrid, and disable single cell selection."
- Previous message: sameer: "Shadow of a closed form"
- In reply to: Juan Manuel Alegría B.: "Re: How Can I get the Processor Id from my computer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|