i got the properties need out of the script
static void Main(string[] args)
{
double totalCapacity = 0;
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_PhysicalMemory");
ManagementObjectSearcher searcher = new
ManagementObjectSearcher(objectQuery);
ManagementObjectCollection vals = searcher.Get();
foreach(ManagementObject val in vals)
{
totalCapacity += System.Convert.ToDouble(val.GetPropertyValue("Capacity"));
}
Console.WriteLine("Total Machine Memory = " + totalCapacity.ToString() + "
Bytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1024) + "
KiloBytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1048576) + "
MegaBytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1073741824 )
+ " GigaBytes");
Console.ReadLine();
}
HTH
Ollie Riches