WMI Query for Computer Model Problem in OSD Task Sequence
Hey all: We have an OSD Task Sequence that has driver packages for the various models of computers we are deploying the OS to included. Each of the driver packages have WMI query conditions to only run if the computer model matches the driver package example: WMI Query Select * FROM Win32_ComputerSystem WHERE Model LIKE "%Latitude XT%" In general this is working great except for one issue. The Task sequence needs to be able to roll out to Dell Latitude XT AND Dell Latitude XT2. Based on the query what happens is that the XT driver package and installs want to run on the XT2 which is a problem since the drivers are different and have different tablet management software. I need the query for the XT to be more specific so that it doesn't run on XT2's. I have tried removing the percent characters used "=" instead of LIKE, IS instead of LIKE, ! = instead of LIKE, ! = Instead of LIKE and removing the percent characters and none of these have worked properly. Does anyone know what syntax to use to make it more specific? Thanks for any help! Zach
October 17th, 2010 12:47am

Hi Zach, actually ... = 'Latitude XT' should do the trick. Problems arise if there are additional characters (spaces, etc) at the beginning or end of the string. That's why you typically use a like with the percent signs. One option is to combine the above query with a query for a specific PNP ID like SELECT * FROM WIN32_PNPENTITY WHERE DEVICEID LIKE 'PCI\\VEN_8086&DEV_2681%' that only exists on one of those models. As they use different chipsets etc it shouldn't be to difficult to find something usefull. Regards Maik Maik Koster - MVP Setup & Deployment http://myitforum.com/cs2/blogs/maikkoster/default.aspx
Free Windows Admin Tool Kit Click here and download it now
October 17th, 2010 11:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics