Jump to content

Recommended Posts

Posted (edited)

I want to create an SCCM task sequence condition whereby it'll skip a certain package if a certain previous package had applied earlier in the task sequence.

 

For example i want a package to install based on a WMI query, if the task sequence runs through without matching the previous packages to those WMI queries i want this last one to run. However if the previous package did apply then i want this last package to skip to the next step.

 

Is there any way to do that?

 

I'm thinking I might have to make a really long WMI query with the reverse, so where I'm doing:

SELECT * FROM Win32_BaseBoard WHERE Product = 'H81I-PLUS'

I'm guessing i'd need a query with:

SELECT * FROM Win32_BaseBoard WHERE NOT Product = 'H81I-PLUS'

but given the amount of motherboard models I'm pointing to in previous ones, and how much of a pain it'll be to maintain (whereas the other ones are really simple) it would be much easier if i could point to a previous part of the task sequence.........if that's possible? Anyone know?

 

EDIT: To think i haven't even finished and a NOT wmi query would look like this:

SELECT * FROM Win32_BaseBoard WHERE NOT (Product = 'G41M-ES2L' OR Product = 'G31MV/G31MV-K' OR Product = 'G31M-ES2L' OR Product = 'G31MX' OR Product = 'P8H61-I' OR Product = 'H61M-ITX' OR Product = 'H61M-S2PV' OR Product = 'H61M-DGS R2.0' OR Product = 'P8H61-I LX' OR Product = 'P8H61-I LX R2.0' OR Product = 'DH61CR' OR Product = 'H81I-PLUS' OR Product = 'H81M-DS2V' OR Product = 'H81M-P33 (MS-7817)' OR Product = 'H81M-S2PV' OR Product = 'H81T')

Eurgh, what a mess.

 

Overall goal of this is to make a single task sequence for every PC in the school regardless of hardware because I've found the "Auto Apply Drivers" to be somewhat inconsistent on some motherboards/some drivers, so I'm using driver packages primarily as these always work perfectly. I've got a driver package for each chipset type (H61 package, H81 package etc) each chipset package is then setup to WMI query to see if that package should apply or not. The goal of this part here is to run the "Auto Apply Drivers" only for those i haven't created a specific driver package for.

Edited by mrbios
  • 1 month later...
Posted

HI,

I have a single task sequence I use here, all I do is create a driver packages for each PC type with a WMI Query like this:SELECT * FROM Win32_ComputerSystem WHERE Model LIKE "%h81m-p-si%" this only applies to this PC type, if it doesn't match it moves to the next until it finds a matching driver package.

Posted (edited)

I know the OP is a couple of months hold so you may have it sorted now, but you only want to run the Auto Apply Drivers step if you haven't manually got a specific drivers package for the model?

 

Rather than evaluate on the driver package itself, you could put each driver package in a separate group in the task sequence and add a set Task Sequence Variable step to each group setting a variable such as DriversInstalled with a value of TRUE. Evaluate each group with the WMI query of the model as you do with the package now, and then only run the Auto Apply Drivers step if DriversInstalled doesn't equal TRUE.

 

That way when you add a new drivers package you can just replicate an existing group rather than editing x amount of WMI Queries.

Edited by Jamoire

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...