Wmi Query Hardware Information
Use the below wmi query amending with your computer model found using the above wmic command to apply the drivers based on that specific computer model in your desktop build task sequence.
Wmi query hardware information. For those that understand sql syntax you won t be lost. The script examples shown in this topic obtain data only from the local computer. Wmi enables you to run processes remotely schedule tasks that have to start at particular times reboot computers remotely read event logs and find out which applications are installed on local and remote computers. The windows management instrumentation command line wmic is a command line and scripting interface that simplifies the use of windows management instrumentation wmi and systems managed through wmi.
The information is from microsoft s about wmi page. Wmi is a management technology that can be used for much more than reading system information. Wmi uses the common information model cim industry standard to represent systems applications networks devices and other managed components. What is nice with wql queries is that you can use those same queries for collection.
Cmdlets from cimcmdlets module are the most important cmdlets for general system management tasks. Retrieving information about installed hardware items with windows management instrumentation is very easy and requires minimal programming skills. Select from win32 computersystem where model like 255522g. This article shows wmic usage on windows server 2008.
All critical subsystem settings are exposed through wmi. Instances of these classes can be linked by their shared instancename property. Physical screen size video inputs. For example you can determine whether a computer is a desktop or laptop.
The information includes manufacturer model serial number cpu ram disks operating system sound deivces and graphics card controller r. Description this is a simple script to retrieve all computer objects in active directory and then connect to each one and gather basic hardware information using cim. The wmi query language wql is a subset of the american national standards institute structured query language ansi sql with minor semantic changes. Cim is developed and maintained by the distributed management task force.
Screen resolution desktop monitor only root wmi. You can use queries to retrieve information about inventory data status messages and many more. Mouse type buttons connector. Hardwareinformation application is written as hta html application and compiled with compiler provided with www sharp clrhost that is available for free.
Wmic can provide a huge range of information about local and remote computers.