OSD icon indicating copy to clipboard operation
OSD copied to clipboard

Wrong version comparison in Get-MyDellBios.ps1

Open mdmplayground opened this issue 2 weeks ago • 0 comments

Describe the bug The function "Update-MyDellBios" will never update an bios if "-Force" is not set. The reason is a wrong version comparison where the Dell Catalog Version needs to be lower than the systems current bios version. if (($GetMyDellBios.DellVersion -lt (Get-MyBiosVersion)) -or ($Force.IsPresent) ) { ... }

Affected Script: Public/Functions/BIOS/Get-MyDellBios.ps1

To Reproduce Add "Update-MyDellBios" as shutdown script without -force parameter.

Expected behavior The bios will be updated from a lower to a higher version without the -force parameter

Recommended solution: if ( ((Get-MyBiosVersion) -lt $GetMyDellBios.DellVersion) -or ($Force.IsPresent) ) { ... }

mdmplayground avatar Dec 17 '25 14:12 mdmplayground