How to Query WMI for Computer Model Name

When you build a task sequence in SCCM and MDT you can use WMI queries to run steps for specific computer models.  This is especially useful when installing driver packages or BIOS updates.  Here is an example of a WMI query to detect only Surface Pro 4 devices:

SELECT * FROM Win32_ComputerSystem WHERE Model Like “%Surface Pro 4%”


Here are 2 methods to query WMI and find the model name for any computer.

  1. From the computer, run this PowerShell command:  Get-WmiObject Win32_ComputerSystem
  2. From a command prompt, run this WMIC command: wmic csproduct get name


  • October 27, 2016 - 1:55 am

    Yunar - Hi Todd,
    Thank you. I found it is very useful to run command in local machine “Get-WmiObject Win32_ComputerSystem”
    How to get the same information for remote machine?ReplyCancel

    • October 27, 2016 - 9:59 am

      Todd - Hey, you can run on remote computer by using the -ComputerName parameter. See the below command…replace MyPCName with the remote computer name.

      Get-WmiObject Win32_ComputerSystem -ComputerName MyPCNameReplyCancel

      • October 28, 2016 - 1:40 am

        Yunar - Excellent, it works. Thanks a lot.ReplyCancel

        • October 28, 2016 - 9:07 am

          Todd - Happy to help!ReplyCancel

Your email is never published or shared. Required fields are marked *