Using WMIC to Find Computer Model for SCCM or MDT

A quick tip that I use quite a bit.  If you like to query WMI to get the computer model for drivers in MDT or SCCM, one little nagging challenge is getting the exact name of the model in WMI.

Here’s a quick command line that you could also script if needed.

From an elevated command prompt, type:

wmic csproduct get name

The result should give you the exact name returned by WMI in your task sequence query. 

 wmic

 

 Then, just plug in your model you are targeting into a SCCM task sequence condition.  For example:

SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “%HP Compaq Elite 8300 SFF%”

 

 

 

 

 

 

Share
This entry was posted in MDT, MDT 2010, SCCM 2007, SCCM 2012. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback.

1 Comment

  1. Posted November 14, 2014 at 6:01 pm | Permalink

    Hi, the whole thing is going fine here and ofcourse every one is sharing facts, that’s genuinely good, keep
    up writing.

Leave a Reply

Your email address will not be published. Required fields are marked *

Your email address will never be published.