A. The best way to check the hardware is to check the manufacturer and model information from Win32_ComputerSystem. For example, to check for the Dell M65 and 820, I could use

Select * from Win32_ComputerSystem WHERE manufacturer LIKE "Dell%" AND (Model LIKE "%820%" OR Model LIKE "%M65%")<pre><p>

To check the make and model of a machine, you could run the following script:</p><p>

</p><pre>strComputer = "."<br>
Set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")<p>

Set colSettingsComp = objWMI.ExecQuery("Select * from Win32_ComputerSystem")</p><p>

For Each objComputer in colSettingsComp<br>
Wscript.Echo "Model - " & objComputer.Model<br>
Wscript.Echo "Manufacturer - " & objComputer.Manufacturer<br>

Here's the script in action:

D:\Temp>cscript checkhardware.vbs<br>
Microsoft (R) Windows Script Host Version 5.7<br>
Copyright (C) Microsoft Corporation. All rights reserved.<p>

Model - Precision M65<br>
Manufacturer - Dell Inc. </p>