Return codes for WINUPTP

For Lenovo ThinkPad computers the standard utility to perform a BIOS update is WINUPTP.exe (or WINUPTP64.exe). This utility can be called with a -s parameter to stage a BIOS update silently that will complete when the system is restarted - presumably by your task sequence.

To date, the possible return codes from this utility were not readily available. This post is meant to correct that. Below is a table of possible return codes from WINUPTP.exe:

Return Code Value Description
RET_SUCC_REBOOTING0BIOS update is successful and system will reboot. (normal update)
RET_SUCC_NOTREBOOTING1BIOS update is successful and system does not reboot. (silent update)
RET_UNDEFINED-1WINUPTP Option is undefined.
RET_FAIL_DRIVER_LOAD-2Driver(tpflhlp.sys) failed to load.
RET_FAIL_UNSUPPORTEDSYSTEM-3This utility does not support this system or OS.
RET_FAIL_NEEDADMINRIGHTS-4This utility requires Administrator privileges to run.
RET_FAIL_NOBIOSIMAGEFORSYSTEM-5BIOS image file does not match this system.
RET_FAIL_BADECIMAGE-6EC image file is damaged.
RET_FAIL_NOECIMAGEFORSYSTEM-7EC image file does not match this system.
RET_FAIL_NOLOGOIMAGEFORSYSTEM-8The custom start up image file is missing or not a supported format.
RET_FAIL_NEEDPOWER-10AC/Battery is detached or battery is not charged.


  1. Hi. Could you please add a list of the possible return codes for winflash2 (ThinkCentre models). It would be very helpful to have the same list for Desktops, specially since the Meltdown and Spectre vulnerabilities, which forced a massive BIOS Upgrade that is running on silent mode. Thanks in advance! Valter Anjos


Post a Comment