Where does msinfo32.exe get it's data from?

Solution 1:

Some of that info is obtained from the registry at

HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System

and some of the other locales in HARDWARE.

The other system information such as System Manufacturer and System Model can only be obtained with calls to the Windows API.

Open up the WMIC.

C:\Windows\System32\wbem\WMIC.exe

In the CLI type in ComputerSystem Get Model, Manufacturer

For a remote computer, you can use the following:

%windir%\System32\wbem\WMIC.exe /node:"ComputerNameORIpAddress" ComputerSystem Get Model, Manufacturer

Or if you need a password:

%windir%\System32\wbem\WMIC.exe /node:"ComputerNameORIpAddress" /user:"domain\username" /password:"password" ComputerSystem Get Model, Manufacturer