We query WMI for model info:

SELECT * FROM Win32_ComputerSystem Where Model = 'OptiPlex 390'

Works great for us.

Mike

From: [email protected] [mailto:[email protected]] On 
Behalf Of Bain.John
Sent: Friday, August 1, 2014 8:39 AM
To: '[email protected]'
Subject: RE: [MDT-OSD] Proper use of Task Sequence conditions

I believe WQL is whats setting those Make and model environment variables, it’s 
a mdt script that does the lookup and sets the variable.

I’m really just trying to get the right sequence of IFs  ….or if IFs are even 
needed.

John
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Marable, Mike
Sent: August 1, 2014 11:35 AM
To: '[email protected]'
Subject: RE: [MDT-OSD] Proper use of Task Sequence conditions

John,

One problem you will run into is the model names will change.

We purchase HPs and we got hit by HP changing the name of the z620s from 
“Workstation z620” to “z620 Workstation”.

HP is also very keen on adding things like “G1” to model names as well.  Our 
810 Revolves had problems when HP started shipping us 810 G1 Revolves.

WQL may be the better way to go.

Mike




From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of elsalvoz
Sent: Friday, August 01, 2014 11:30 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [MDT-OSD] Proper use of Task Sequence conditions

How about using WQL? 
http://systemmanagement.ro/blog/2009/05/22/install-drivers-by-computer-model-using-wmi-query/

or defining it in the CS.ini 
http://blogs.technet.com/b/askcore/archive/2013/05/09/how-to-manage-out-of-box-drivers-with-the-use-of-model-specific-driver-groups-in-microsoft-deployment-toolkit-2012-update-1.aspx

On Fri, Aug 1, 2014 at 8:05 AM, Bain.John 
<[email protected]<mailto:[email protected]>> wrote:
This is related to software for hardware.
I have a step in my mdt deployment that is model specific so I set criterias 
for that step and I am just trying to figure out what is the best way to set 
that criteria.

I want the software to only install if the system is a 6005 or a Z400

Should I use option A
[cid:[email protected]]

Should I use option B
[cid:[email protected]]

Should I use option C
[cid:[email protected]]

Thanks
John


John Bain
NHQ – Solutions and Information Management | AC - Direction générale des 
solutions et de la gestion de l’information
Citizenship and Immigration Canada | Citoyenneté et Immigration Canada
365 Laurier Avenue West Ottawa ON K1A 1L1 | 365, avenue Laurier Ouest Ottawa ON 
K1A 1L1
[email protected]<mailto:[email protected]>
Telephone | Téléphone 613-954-2536<tel:613-954-2536>
Facsimile | Télécopieur 613-952-7171<tel:613-952-7171>
Government of Canada | Gouvernement du Canada


**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues

Reply via email to