MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
633 stars 281 forks source link

dell bios update script doesnt seem to set the variables for reboot... #143

Closed vartaxe closed 4 years ago

vartaxe commented 5 years ago

Set reboot flag if restart required determined (exit code 2)

                    if ($FlashProcess.ExitCode -match "0|2") {

                        # Set reboot required flag

                        $TSEnvironment.Value("SMSTSBIOSUpdateRebootRequired") = "True"

                        $TSEnvironment.Value("SMSTSBIOSInOSUpdateRequired") = "False"
vartaxe commented 5 years ago

i also had the issue that even tough the flash tool returned code 2 for reboot the powershell script itself returned 4294967295 image i think it could be related to previous reboot and logon screen or even a user may have logged on that moment https://slightlyovercomplicated.com/2018/08/11/how-to-display-a-custom-window-in-sccm-task-sequence-using-powershell/

vartaxe commented 5 years ago

Nobody else having this issue?