Re: How Can I get the Processor Id from my computer

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: gui_guru (guiguru_at_discussions.microsoft.com)
Date: 01/18/05


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.
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: wim32 class?
    ... § ATLLAPHROTTENBE Get-WmiObject win32_bios ... SerialNumber: 7B530C1 ... If you want to grab just the s/n of a bunch of computers which are in a file: ...
    (microsoft.public.windows.server.scripting)
  • Re: Why Is Matched First Time, Not Second Time
    ... > FOUND Computers & Printers|Monitors ... > Empty String '' is matched the first time but not the second time. ... flags on the empty pattern is honoured - the other flags are taken from the ...
    (comp.lang.perl.misc)
  • Re: Bad protocol tcp
    ... empty string. ... This is also true for 'getprotobynumber'. ... on the other computers returns the appropriate values as indicated in ... the protocol file. ...
    (comp.lang.perl.misc)
  • Why Is Matched First Time, Not Second Time
    ... FOUND Computers & Printers|Monitors ... Empty String '' is matched the first time but not the second time. ...
    (comp.lang.perl.misc)