+ Post New Thread
Results 1 to 14 of 14
Scripts Thread, Auditing the amount of RAM in Coding and Web Development; Was just curious how you would go abouts doing a script that outputs something like so : Total of 4 ...
  1. #1

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,729
    Thank Post
    3,252
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364

    Auditing the amount of RAM

    Was just curious how you would go abouts doing a script that outputs something like so :

    Total of 4 memory slots

    Slot 1 - 512 Mb Kingston PC3200 DDR
    Slot 2 - Empty
    Slot 3 - 512 Mb Kingston PC3200 DDR
    Slot 4 - Empty

    I know you use WMI and the Win32_ComputerSystem class but am not sure how to do it to something similiar above so it tells you how much ram is in each memory slot and what type , make, model of ram etc.

    Thanks

  2. #2

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    I just use Belarc !!

    http://www.belarc.com/free_download.html

    [ Yes i know its cheating.... ]

  3. #3

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,135
    Thank Post
    1,908
    Thanked 1,343 Times in 742 Posts
    Blog Entries
    3
    Rep Power
    395
    Me too. Belarc's a great little utility. We run it on all PCs - mainly so we can record what the config is of each PC and what apps are installed. It's handy because it also shows the licence/product keys.

  4. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,729
    Thank Post
    3,252
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    I know about belarc, SIW and everest ( home and ultimate edition ) But was just wondering how to do this in vbscript with regards to the memory.

  5. #5
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    Microsoft has a tool which can generate WMI queries, perhaps that'll help.

    http://www.microsoft.com/downloads/d...displaylang=en

  6. #6
    MyDejaVu's Avatar
    Join Date
    Apr 2007
    Location
    Mexico
    Posts
    106
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    15
    just checking on that website

    "License: The license associated with this product allows for free personal use only. Use on multiple PCs in a corporate, educational, military or government installation is prohibited. See the license agreement for details. "


    what do you use it for?

  7. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,729
    Thank Post
    3,252
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    Quote Originally Posted by MyDejaVu View Post
    just checking on that website

    "License: The license associated with this product allows for free personal use only. Use on multiple PCs in a corporate, educational, military or government installation is prohibited. See the license agreement for details. "


    what do you use it for?
    which website are you looking on ? Also this is so I can establish how it is done.

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,663
    Thank Post
    516
    Thanked 2,446 Times in 1,894 Posts
    Blog Entries
    24
    Rep Power
    831
    I have OCSNG running on our network and this is one of the things it logs.

  9. #9
    MyDejaVu's Avatar
    Join Date
    Apr 2007
    Location
    Mexico
    Posts
    106
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    15
    i was referring to Belarc software, it is free, but not to use in an educational environmnet...

  10. #10

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,729
    Thank Post
    3,252
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    Quote Originally Posted by localzuk View Post
    I have OCSNG running on our network and this is one of the things it logs.
    what is OCSNG ? Any site for them ?

  11. #11
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    467
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    Quote Originally Posted by gecko View Post
    what is OCSNG ? Any site for them ?
    Google says: http://www.ocsinventory-ng.org/

  12. Thanks to Jona from:

    localzuk (31st January 2008)

  13. #12

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,135
    Thank Post
    1,908
    Thanked 1,343 Times in 742 Posts
    Blog Entries
    3
    Rep Power
    395
    Quote Originally Posted by MyDejaVu View Post
    i was referring to Belarc software, it is free, but not to use in an educational environmnet...
    Whoops - is it?! Never mind.

  14. #13

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,154
    Thank Post
    114
    Thanked 527 Times in 450 Posts
    Blog Entries
    2
    Rep Power
    123
    Scriptomatic (see Bizzel's link) can get the basic info (use the Win32_PhysicalMemory class).

    Not sure if it will give you manufacturer and speed (I don't collect them; only the number and size)

    We push this into a SQL database so we can see what's where.

  15. #14
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    33
    You can also use GPInventory from Microsoft. Yes it's a GUI and you want it scripted, but someone might find it useful GPinventory's range of queries can be extended by adding more WMI classes/queries into xml settings files.

    Here's my xml file for physical memory:

    Code:
    <Query>
      <ManagedObjects>
        <ManagedObject Name="WMI: Memory Sticks" Query="select Capacity from Win32_PhysicalMemory" />
      </ManagedObjects>
      <Target>
        <ActiveDirectoryTarget>
          <LDAPPath>LDAP://myldappath,getyourown!</LDAPPath>
          <SearchScope>OneLevel</SearchScope>
        </ActiveDirectoryTarget>
      </Target>
    </Query>

SHARE:
+ Post New Thread

Similar Threads

  1. Active Directory Auditing??
    By ICTNUT in forum How do you do....it?
    Replies: 8
    Last Post: 28th November 2012, 02:21 AM
  2. Auditing Group Policy
    By Jonny_sims in forum How do you do....it?
    Replies: 5
    Last Post: 10th January 2008, 12:15 PM
  3. auditing hardware condition
    By david12345 in forum Hardware
    Replies: 3
    Last Post: 19th July 2007, 11:04 AM
  4. Replies: 1
    Last Post: 23rd February 2007, 12:26 PM
  5. Antivirus & Antispyware auditing
    By nick in forum Wireless Networks
    Replies: 0
    Last Post: 15th March 2006, 01:43 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •