Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Multiple scripted deployments in a single application, priorities not working as intended?

$
0
0

We have a SCCM 2012 R2 deployment and I am trying to deploy an application "BIOS Updates" which contains multiple scripted deployment types arranged by priority.

Below is an example of this:

The vbscript used in the detection method is:

'Change strBIOSUpdateVersion to the version you are deploying to
strBIOSUpdateVersion = "A05"

'Get BIOS Version from Win32_BIOS
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colBIOS = objWMI.ExecQuery("Select * from Win32_BIOS")
For Each objBIOS In colBIOS
    If objBIOS.SMBIOSBIOSVersion >= strBIOSUpdateVersion Then
        WScript.Echo "Detected"
    End If
Next

In some situations you cannot update BIOS from lets say A01 straight to A21, you need A05 then A08 before you can move to A21.

So the idea is I have all 3 published and my detection script will compare the current BIOS version on the system to the one in the scripted application and install the new BIOS if the installed one is a lower version.

The problem is if I have a laptop with bios version A01, then A05, A08 and A21 are all applicable but they need to be applied in the correct sequence otherwise the bios update will error and tell you "You need to update to A05 to get to A08" or"You need to update to A08 to get to A21".

So I was going to use the priority higher/lower settings to prioritize which scripted install goes first. So with that in mind and my current setup being like this:

1. E6420_A05

2. E6420_A08

3. E6420_A21

It should start with #1, run the vbscript and see that the app is not installed and proceed with installing. Then next time it runs (which I assume it will because there are 3 packages?), it will attempt #1 but will get a STDOUT message making SCCM think it is already installed and move to #2, then to #3.

But this is not happening, it seems that only E6420_A21 is getting applied at all times. I tried to switch up the priority order so that..

1. A21

2. A08

3. A05

As i've read somewhere that in SCCM the order of things is backwards, but this does not help.

Anyone able to help me out?


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>