w w w . t j e e n a . s e

The digital life of Jörgen Larsson


UEFI notification HTA in Task Sequence

We had to post a message to our technicians that warned about UEFI not being turned on in BIOS. Some of our machines doesn’t support UEFI so it more of a notification.

Create a text document ending with .HTA, paste the code into it.

In the task sequence add Run Command Line and the Condition below. The built in variable _SMSTSBootUEFI is automatically set to false is UEFI is not detected.



You have started an installation without having UEFI/Secure Boot enabled in BIOS!

If you know that this computer doesn't support UEFI/SecureBoot click Continue, otherwise click Reboot and change the settings in BIOS manually.

This is what the HTA will look like:

Leave a Reply

Your email address will not be published. Required fields are marked *