Computers running Windows XP and later versions of Windows support Windows Management Instrumentation (WMI). WMI is a management framework that you can use to query a computer to determine its attributes. For example, you can create a WMI query to determine the operating system running on a computer or the amount of available memory. WMI queries by themselves are helpful, especially when used in scripts.
You can use WMI queries to examine settings based on just about any measurable characteristic of a computer, including
Amount of memory installed
Available hard disk space
Processor type or speed
Network adapter type or speed
Operating system version, service pack level, or hotfix
Registry key or key value
System services ...