1

I need to know if the server (motherboard) has more than one socket even if there is one CPU on it with the help of C#!

is there a way?

Data-Base
  • 8,418
  • 36
  • 74
  • 98

1 Answers1

1

You should dig into WMI. Where is plenty of articles how to access and use WMI from .net. The only problem is to find right data table.

As it seems this is not an easy (if possible) task to get this kind of information. Most certanly you can't get number of sockets if no CPU installed in all of the sockets. See this note on subject.

Petr Abdulin
  • 33,883
  • 9
  • 62
  • 96
  • Seems like @Massimiliano in comments even found exact duplice of what you want. – Petr Abdulin Aug 11 '11 at 11:12
  • 1
    Different question. This is a question (I think) about # of sockets on the motherboard, not what CPUs (& cores) are installed. – Joe Aug 11 '11 at 11:13
  • same as Joe said, I need to know if the server has 2 sockets and only one CPU was installed! – Data-Base Aug 11 '11 at 11:28