Some of you may be familiar from my earlier article “Dell BIOS Updates with PowerShell” and hopefully you have gotten some good use out of it. There have been a few comments on that article and over time I’ve also had some issues with that version of the script brought to my attention.
Some of these issues are:
- 1. Dell OptiPlex 745 updates don’t work because of the naming convention
- 2. Bios updates are overriding newer versions that come from the factory
- Still not updating to the latest available version due to supersedence rules for the BIOS updates (i.e. Needing A05, then A08, then finally A12).
So with that I fired up PowerGUI and started analyzing the entire flow of the script. And more importantly kept in mind the overall process needed when multiple versions of a BIOS Update may be required (from A01 to Axx). With this new script, I’ve introduced some new “features”
- Added a loop to parse multiple available BIOS update files
- Added a switch condition to allow for “oddly-named” BIOS file versions (read: OptiPlex 745)
- Added BIOS Release Date information (Universal Time Format) to check for BIOS “Patches” (i.e. P02 on Latitude E6410/E6510)
- Added OSD-Specific tasks (separate script)
- Embedded function for actually invoking the BIOS Update process itself with custom parameters.
- Removed dependency on Dell OMCI for BIOS identification (using Win32_BIOS now)
Using this with OSD/MDT
I’m not going to go over the script in its entirety here, however I will put out a few things specifically for using the “OSD” version of the script. This additional script will connect to the Microsoft.SMS.TSEnvironment in order to interact with and create a new Task Sequence Variable.
When using this with OSD/MDT, you’ll want to have the script run multiple times in order to fully update the BIOS to the latest possible revision in the case that multiple executions are necessary. Below I’ve documented the process that I have implemented to do just this.
Task Sequence Structure:
As you can see here, we have multiple nested groups that will run the Dell BIOS Update script and enforce a reboot after the update has been staged. One thing to point out here is that after the first run (which I’m calling as a regular Package/Program) is the word “Local”. That’s right, the OSD script is copying the model-specific BIOS Updates locally (if there is more than one) so we don’t re-download the whole package again.
Update BIOS Group Condition:
Update Dell BIOS Run Commandline:
powershell.exe -NoProfile -NonInteractive -File