Getting PC configuration details!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ashutosh Bhalerao

    Getting PC configuration details!!

    I need to be able to access the following information
    programmaticall y.

    Total RAM Memory
    How many occupied memory slots are there in the
    machine
    How much memory in each chip
    What kind of RAM chips?
    DDR
    SDR
    Speed of RAM chips?
    100 or 133 for SDR,
    266 or 333 for DDR
    Who is the manufacturer of existing memory chip
    (s)
    How many empty slots are there for additional
    capacity?


    Can anybody give me pointers as to where to look? I have tried to
    search on google but have not got much success.

    Thanks in advance.

    Rgds,
    Ashu
  • Ryan Byington

    #2
    RE: Getting PC configuration details!!

    I really do not think it is possible to obtain most of this information. I
    just dont think this kind of information is available to the OS. Regardless
    there is no classes provided in the .Net framework to facilitate this.

    Thanks,

    Ryan Byington [MS]

    This posting is provided "AS IS" with no warranties, and confers no
    rights.Use of included script samples are subject to the terms specified at
    Use these online forms to report copyright and trademark infringement to Microsoft Legal. Infringement notices must comply with the Digital Millennium Copyright Act.


    --------------------[color=blue]
    >From: ashubhalerao@ya hoo.com (Ashutosh Bhalerao)
    >Newsgroups: microsoft.publi c.dotnet.genera l
    >Subject: Getting PC configuration details!!
    >Date: 8 Aug 2003 03:00:50 -0700
    >Organization : http://groups.google.com/
    >Lines: 26
    >Message-ID: <b02e5e9e.03080 80200.30b86460@ posting.google. com>
    >NNTP-Posting-Host: 61.11.18.155
    >Content-Type: text/plain; charset=ISO-8859-1
    >Content-Transfer-Encoding: 8bit
    >X-Trace: posting.google. com 1060336851 23517 127.0.0.1 (8 Aug 2003[/color]
    10:00:51 GMT)[color=blue]
    >X-Complaints-To: groups-abuse@google.co m
    >NNTP-Posting-Date: 8 Aug 2003 10:00:51 GMT
    >Path:[/color]
    cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
    e.de!newsfeed.f reenet.de!194.1 68.222.21.MISMA TCH!newspeer1-gui.server.ntli .n
    et!ntli.net!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.co m!postnews1.
    google.com!not-for-mail[color=blue]
    >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:103915
    >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    >
    >I need to be able to access the following information
    >programmatical ly.
    >
    >Total RAM Memory
    > How many occupied memory slots are there in the
    >machine
    > How much memory in each chip
    > What kind of RAM chips?
    > DDR
    > SDR
    > Speed of RAM chips?
    > 100 or 133 for SDR,
    > 266 or 333 for DDR
    > Who is the manufacturer of existing memory chip
    >(s)
    > How many empty slots are there for additional
    >capacity?
    >
    >
    >Can anybody give me pointers as to where to look? I have tried to
    >search on google but have not got much success.
    >
    >Thanks in advance.
    >
    >Rgds,
    >Ashu
    >[/color]

    Comment

    • Willy Denoyette [MVP]

      #3
      Re: Getting PC configuration details!!

      Ashutosh Bhalerao wrote:
      || I need to be able to access the following information
      || programmaticall y.
      ||
      || Total RAM Memory
      || How many occupied memory slots are there in the
      || machine
      || How much memory in each chip
      || What kind of RAM chips?
      || DDR
      || SDR
      || Speed of RAM chips?
      || 100 or 133 for SDR,
      || 266 or 333 for DDR
      || Who is the manufacturer of existing memory chip
      || (s)
      || How many empty slots are there for additional
      || capacity?
      ||
      ||
      || Can anybody give me pointers as to where to look? I have tried to
      || search on google but have not got much success.
      ||
      || Thanks in advance.
      ||
      || Rgds,
      || Ashu

      Most of this can be retrieved using the System.Manageme nt classes and WMI (see class Win32_PhysicalM emoryArray and class
      Win32_PhysicalM emory).

      Willy.


      Comment

      • Willy Denoyette [MVP]

        #4
        Re: Getting PC configuration details!!

        Ashutosh Bhalerao wrote:
        || I need to be able to access the following information
        || programmaticall y.
        ||
        || Total RAM Memory
        || How many occupied memory slots are there in the
        || machine
        || How much memory in each chip
        || What kind of RAM chips?
        || DDR
        || SDR
        || Speed of RAM chips?
        || 100 or 133 for SDR,
        || 266 or 333 for DDR
        || Who is the manufacturer of existing memory chip
        || (s)
        || How many empty slots are there for additional
        || capacity?
        ||
        ||
        || Can anybody give me pointers as to where to look? I have tried to
        || search on google but have not got much success.
        ||
        || Thanks in advance.
        ||
        || Rgds,
        || Ashu

        Most of this can be retrieved using the System.Manageme nt classes and WMI (see class Win32_PhysicalM emoryArray and class
        Win32_PhysicalM emory).

        Willy.


        Comment

        • Ashutosh Bhalerao

          #5
          Re: Getting PC configuration details!!

          Thanks Willy, That solved my problem.

          Here is some source code which could help anyone who might need this.



          Rgds,
          Ashu

          Comment

          • Ashutosh Bhalerao

            #6
            Re: Getting PC configuration details!!

            Thanks Willy, That solved my problem.

            Here is some source code which could help anyone who might need this.



            Rgds,
            Ashu

            Comment

            Working...