Sub topic 8
UEFI, Secure Boot, and TPM Settings
This chapter covers the firmware settings that decide whether a PC can install and boot Windows 10 or 11. It assumes you know what a CPU, RAM, storage and a motherboard are. It also assumes you can use Settings and File Explorer, and that you know what a disk partition is. The next chapter covers GPT, MBR, and file systems in detail. Here the focus is the firmware that sits underneath them.
What firmware does
Firmware is the code stored on the motherboard that runs before any operating system. It tests the hardware, finds a boot device, and hands control to a boot loader. Two firmware types matter for the exam:
- BIOS (Basic Input/Output System) is the older design. It reads the first sector of a disk, called the master boot record (MBR), and runs the code it finds there.
- UEFI (Unified Extensible Firmware Interface) is the modern replacement. It reads a boot loader file from a small FAT32 partition called the EFI System Partition (ESP). It supports disks larger than 2 TB, a graphical setup screen, faster startup, and Secure Boot.
Many UEFI systems include a CSM (Compatibility Support Module) or "Legacy mode". This lets a UEFI machine boot like an old BIOS machine. Windows 11 does not support CSM-only boot.
| Feature | Legacy BIOS | UEFI |
|---|---|---|
| Boot data location | MBR in the first disk sector | Boot loader file on the ESP |
| Typical partition style | MBR | GPT |
| Boot disk size limit | 2 TB | Far beyond 2 TB |
| Secure Boot | Not available | Available |
| Windows 11 support | No | Yes |
Entering the firmware setup
You open the setup screen with a key pressed right after power-on. Common keys are Del, F2, F10, and Esc, and the manufacturer's logo screen often shows the right one. On a PC that already runs Windows, you can also use Settings. Go to System, then Recovery, then Advanced startup, then Restart now. After the restart, choose Troubleshoot, then Advanced options, then UEFI Firmware Settings. Fast startup can skip the key-press window on some machines, so the Windows route is often easier.
Checking the current boot mode
Before you change anything, find out what the machine uses now. Open msinfo32 and read the BIOS Mode line. It says either UEFI or Legacy. The Secure Boot State line says On, Off, or Unsupported.
You can also check Secure Boot and the TPM from an elevated PowerShell window. An elevated window is one opened with "Run as administrator".
Confirm-SecureBootUEFI
Get-Tpm | Select-Object TpmPresent, TpmReadyConfirm-SecureBootUEFI returns True when Secure Boot is on and False when it is off. On a legacy BIOS system it returns an error saying the cmdlet is not supported on this platform. That error tells you the machine is booted in legacy mode, or has no UEFI at all. TpmPresent tells you whether a TPM exists. TpmReady tells you whether Windows can use it.
Secure Boot
Secure Boot is a UEFI feature that checks the digital signature of each boot component before it runs. The firmware keeps a database of trusted signing keys. If the boot loader or a driver loaded early in boot has no valid signature, the firmware refuses to run it. This blocks bootkits, which are malware that loads before Windows and hides from antivirus software.
The boot chain looks like this:
Points to remember:
- Secure Boot works only in UEFI mode. If the firmware is in legacy or CSM mode, the option is missing or greyed out.
- Windows 11 requires a system that is Secure Boot capable. The setting can be off at install time, but the hardware must support it.
- Secure Boot can block some bootable tools, older Linux distributions, and unsigned drivers. If a bootable USB drive will not start, a failed signature check is a likely cause.
- Secure Boot is not the same as BitLocker. Secure Boot protects the boot process. BitLocker encrypts the data on the drive.
Setup mode and keys
Some firmware lets you clear or reset the Secure Boot keys. Resetting to factory default keys restores the manufacturer's trusted set. Clearing the keys puts the firmware in "Setup Mode", and Secure Boot then reports as off until keys are restored. On the exam, the usual answer to "Secure Boot is greyed out" is to switch from CSM or Legacy to UEFI mode first. Another common cause is a supervisor password that has not been entered.
TPM
A TPM (Trusted Platform Module) is a security chip, or a firmware feature that acts like one, that stores cryptographic keys and measures the boot process. Software cannot easily read the keys out of it. Windows uses the TPM for BitLocker, Windows Hello, and device health checks.
| TPM form | Description |
|---|---|
| Discrete TPM | A separate chip on the motherboard |
| Integrated TPM | Built into another chip such as the CPU or chipset |
| Firmware TPM | Runs in a protected part of the CPU firmware. Intel calls it PTT, and AMD calls it fTPM |
| Virtual TPM | Provided to a virtual machine by a hypervisor |
Windows 11 requires TPM 2.0. Windows 10 does not require a TPM, although BitLocker works best with one. TPM 1.2 does not meet the Windows 11 requirement. Many PCs from about 2016 onward have a firmware TPM that is switched off in setup. The option may be named "Intel PTT", "AMD fTPM", "Security Device Support", or "TPM Device". Enable it, save, and restart.
You can also run tpm.msc to open the TPM Management console. It shows the status and the Specification Version. The version must read 2.0 for Windows 11. If it says "Compatible TPM cannot be found", the TPM is either missing or turned off in firmware.
Clearing the TPM
The TPM Management console has a Clear TPM action. Clearing erases the keys stored in the chip. Any drive encrypted with BitLocker using that TPM then needs its recovery key. Suspend BitLocker and back up the recovery key before you clear the TPM or change firmware settings that affect it.
Windows 11 firmware requirements
Windows 11 needs all of the following in the firmware:
- UEFI boot mode, not legacy or CSM-only
- A Secure Boot capable system
- TPM 2.0
The CPU, RAM, and storage requirements are covered in the system requirements chapter. The PC Health Check app from Microsoft reports which requirement a PC fails. It is a quick first test, but it only reads the current state. It does not change firmware settings for you.
Preparing a PC for installation
Follow this order when a PC fails the firmware checks:
- Open
msinfo32and note the BIOS Mode, Secure Boot State, and the Windows version. - Check the disk's partition style, because the boot mode and partition style must match. UEFI boot needs GPT, and legacy boot needs MBR.
- Enter firmware setup. Turn on the TPM (PTT or fTPM) if it is off.
- Switch the boot mode from Legacy or CSM to UEFI. Then enable Secure Boot.
- Set the boot order or use the one-time boot menu to start from the installation USB drive.
- Save and exit.
Step 2 is the most common source of trouble. The following command lists each disk and its partition style:
Get-Disk | Select-Object Number, FriendlyName, PartitionStyle, SizeIf Windows is installed on an MBR disk and you switch the firmware to UEFI, the PC will not boot. The firmware looks for an ESP that does not exist. Windows 10 includes the mbr2gpt tool, which converts an MBR disk to GPT without erasing data. It is run from an elevated command prompt, and you should have a backup first.
On a blank disk during setup, you can convert it to GPT yourself. Press Shift+F10 at the Windows Setup screen to open a command prompt:
diskpart
list disk
select disk 0
clean
convert gpt
exitThe clean command erases the whole disk. Check the disk number with list disk before you run it, because a wrong number destroys the wrong drive.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| "Windows cannot be installed to this disk. The selected disk is not of the GPT partition style" | Firmware is in UEFI mode, disk is MBR | Convert the disk to GPT, or boot in legacy mode for Windows 10 |
| "The selected disk has an MBR partition table. On EFI systems, Windows can only be installed to GPT disks" | Same mismatch as above | Same as above |
| "This PC can't run Windows 11" | TPM off, Secure Boot off, or legacy boot | Enable the TPM, switch to UEFI, enable Secure Boot |
| Secure Boot option is greyed out | Firmware is in CSM or legacy mode, or a password is set | Disable CSM, switch to UEFI, then enable Secure Boot |
| USB installer does not appear in the boot menu | Media made for the wrong boot mode, or the USB port is not enabled | Rebuild the USB drive for UEFI, FAT32 format, and try another port |
| "Secure Boot Violation" at startup | Unsigned boot loader or changed keys | Restore default keys, or use signed media |
| BitLocker asks for a recovery key after a firmware change | The TPM saw a different boot state | Enter the recovery key, then resume protection |
Exam angles
- Windows 11 needs UEFI, Secure Boot capability, and TPM 2.0. Windows 10 needs none of these.
- GPT goes with UEFI. MBR goes with legacy BIOS.
- Secure Boot is greyed out when the PC is in legacy mode.
- Secure Boot guards against boot-time malware. BitLocker protects data at rest, and it uses the TPM.
- A firmware TPM is switched on in setup under names like PTT or fTPM.
Exercise
A technician is upgrading a laptop to Windows 11. PC Health Check reports that the PC fails the Secure Boot and TPM checks. msinfo32 shows BIOS Mode: Legacy. The laptop's only disk uses MBR. List the steps in a safe order.
Show answer
Back up the data and, if BitLocker is on, save the recovery key and suspend it. Convert the disk from MBR to GPT with mbr2gpt, which keeps the data. Enter firmware setup, enable the firmware TPM (PTT or fTPM), and switch the boot mode from Legacy/CSM to UEFI. Enable Secure Boot. Save and restart, then confirm with msinfo32 that BIOS Mode is UEFI and Secure Boot State is On. The disk must be converted before the mode is switched, because a UEFI firmware cannot boot an MBR-only Windows install.
Exercise
During a clean Windows 11 install, setup says the selected disk is not of the GPT partition style. The firmware is already in UEFI mode and the disk is new. What do you do, and what is the risk?
Show answer
Press Shift+F10 to open a command prompt and run diskpart, then list disk, select the correct disk, clean, convert gpt, and exit. Then refresh the disk list in setup and continue. The risk is that clean erases the whole selected disk, so you must confirm the disk number first.
Exercise
A user turns on Secure Boot, and now a bootable diagnostic USB drive no longer starts. Name the most likely cause and two ways to proceed.
Show answer
The tool's boot loader is not signed by a key the firmware trusts, so Secure Boot blocks it. Use a signed version of the tool, or temporarily disable Secure Boot to run it and turn it back on afterward. Suspend BitLocker first if the drive is encrypted.