Using MDT Queries to Assign Applications to Specific Hardware
I was asked by a commenter (here you go Alan!) on expanding on how I use a Make and Model query to automatically assign applications to a specific hardware models. It’s a very easy and powerful feature of MDT and it makes installing those OEM supplied utilities a lot easier.
I’m going to assume that you already have your SSM packages created in your MDT Applications. If not refer to my post on them here.
The first thing you need to do is configure the MDT Configuration Database. There are many articles on the internet that already cover this (including the MDT Documentation) so I won’t rehash that information. One I found particularly good was this one. After you have configured that database and the rules make sure you update your WinPE boot images. If you don’t they will not be able to take advantage of the make and model queries.
Now that your database is configured and you have configured your rules (all explained in the previous link) you can use MDT to dynamically assign applications based on model. In the Deployment Workbench go to Advanced Configuration > Database > Make and Model.
Right click Make and Model and choose New. On the first screen you need to define your Make and Model as is represented in WMI. It’s important that the Make and Model fields exactly match the Name (Model) and Vendor (Make) attributes store in the WMI database. For those that don’t know how to find this information you can use the WMIC tool to display it. The below command returns the Make and Model information from WMI. Note that Name = Model and Vendor = Make.
wmic csproduct get /value
After you enter in the Make and Model information click on the Applications tab. Click Add and choose the SSM application that you want to assign to this model. You can assign as many as you want. Each application that you add to this make and model will be automatically assigned when you choose a deployment task sequence.
Boot from you WinPE image and choose your deployment task sequence. When you get to the screen to choose your applications the ones you previously added to the Applications tab should already be checked.
This is a great way to deploy OEM specific applications in an automated process but you can also do this with any application in MDT.