Retrieve Windows System Information.

  • Thread starter Thread starter engteng
  • Start date Start date
E

engteng

How can I retrieve Windows System Information ? example :
System Name, System Model, Processor, Total Physical Memory and etc.


Regards,
Tee ET
 
engteng said:
How can I retrieve Windows System Information ? example :
System Name, System Model, Processor, Total Physical Memory and etc.

Probably off of the System.Diagnostics namespace.
 
Dans : engteng écrivait :
How can I retrieve Windows System Information ? example :
System Name, System Model, Processor, Total Physical Memory and etc.

I use WMI for this (System.Management Namespace)
Example in vb.NET for the processors

Dim win32_Processor As New ManagementClass( _
New ManagementPath("Win32_Processor"))
Dim properties As PropertyDataCollection = win32_Processor.Properties
For Each instance As ManagementObject In win32_Processor.GetInstances
Console.WriteLine(
instance.Properties("ProcessorId").Value.ToString)
Console.WriteLine(instance.Properties("Name").Value.ToString)
Next

Have a look here
http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx
 
Back
Top