I just use Belarc !!
[ Yes i know its cheating.... ]
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.
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.
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.
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?
I have OCSNG running on our network and this is one of the things it logs.
i was referring to Belarc software, it is free, but not to use in an educational environmnet...
localzuk (31st January 2008)
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.
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>
There are currently 1 users browsing this thread. (0 members and 1 guests)