Tuesday, March 13, 2012

ConfigMgr Task Sequence: Add a WMI Condition

Scope

During your OSD Task Sequence you may want to determine whether the machine is a laptop or not, install software to a specific machine name format, or install drivers to only specific models of laptops.  For this you can use the WMI Query Condition within the Tasks of your Task Sequence.  A great tool to look up what can be queried from of WMI is WMICodeCreator and is provided by Microsoft.

Procedure

  1. Open your SCCM Task Sequence
  2. Highlight the task or folder that needs a WMI Condition
    1. Click the Options Tab
      1. Click Add Condition
      2. Click Query WMI
      3. Insert your WQL Query
        1. Examples
          1. Laptop hardware:  Select * from Win32_Battery where chemistry > 3
          2. Computer Model:  Select * from Win32_ComputerSystem Where Model like '%latitude%5400%'
          3. Computer Name:  Select * from Win32_ComputerSystem Where Name like 'CH%' or Name like 'AR%'
      4. Click OK
      5. Click OK

No comments:

Post a Comment