Wednesday, June 6, 2012

SCCM Task Sequence | WMI Query

I’m not a coding expert and neither a scripting expert, but this tool (WMICodeCreator) helps very much. You can download it from

Below is the example to create a WMI Query to query the PC Model.


1. Select the classes. In this example, I selected Win32_ComputerSystem
2. Select the properties values. In this example, I selected Model
3. Click the “Search for Property Values”
4. Click the output value. In this example, “Model = ‘Latitude E5410”
5. The WMI Query is shown in the Generated Code in the right hand pane.

Cheers!!! You can now copy the code to your task sequence. =)

1 comment: