Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

IT Support & Help Desk Fundamentals  Module 3 – Hardware and peripherals

UEFI, Secure Boot, TPM and firmware updates

Navigate UEFI settings, check Secure Boot and TPM status, explain the 2026 certificate update, and update firmware safely without triggering BitLocker recovery.

  • Intermediate
  • 20 minutes
  • Examples run with Python 3.14.8 and Pyodide 314.0.7
  • By MySmartCoPilot
Free lesson, Pro answers: 20 minutes
Free: the whole lesson. With a pass: the model answers to its 2 interview questions.

What you will learn

  • Navigate UEFI setup from a startup key or from Windows to the boot order, boot mode, Secure Boot and TPM settings
  • Check Secure Boot and TPM state from Windows and decide whether a PC meets the Windows 11 minimum
  • Explain which Secure Boot certificates are being replaced and what a user may notice during the change
  • Update firmware safely, with the recovery key confirmed and BitLocker suspended for the restarts it needs

Before you start

What you’ll learn · Before you start

What you will learn

  • Navigate UEFI setup from a startup key or from Windows to the boot order, boot mode, Secure Boot and TPM settings
  • Check Secure Boot and TPM state from Windows and decide whether a PC meets the Windows 11 minimum
  • Explain which Secure Boot certificates are being replaced and what a user may notice during the change
  • Update firmware safely, with the recovery key confirmed and BitLocker suspended for the restarts it needs

Before you start

On this page

Two calls reach the help desk on the same morning. Windows 11 Setup refuses an office desktop, and a laptop that took a BIOS update overnight now stops at a screen that asks for a 48-digit recovery key. Neither PC is broken: the desktop starts in an old compatibility mode with its TPM switched off, and the laptop’s new firmware no longer matches what BitLocker measured when it sealed the drive’s key.

UEFI: Unified Extensible Firmware Interface: the firmware that starts a modern PC before the operating system, replacing the older BIOS. Windows 11 installs in UEFI mode with Secure Boot. is the firmware that starts a PC, Secure Boot: A UEFI firmware feature that refuses to start firmware drivers, boot loaders or operating systems that are not signed with keys the firmware trusts. Windows 11 needs Secure Boot capable firmware, in a VM too. More in “Build a practice lab with virtual machines” is its check that only signed start-up software runs, and a TPM: Trusted Platform Module: a chip or firmware component that holds keys and measures the early start-up parts. BitLocker seals the volume key to it and the TPM releases the key only when the measurements match. holds keys that it hands over only when the start-up measurements match. Windows 11 needs UEFI firmware that is Secure Boot capable and a TPM 2.0. By the end you can reach those settings, read them from Windows, explain why Secure Boot’s certificates are being replaced, and update firmware without a recovery prompt.

Four firmware settings decide how a PC starts

Both calls are answered in UEFI setup, the firmware’s own settings screen, so the first job is getting there. Many PCs open it with a key pressed during power-on, and the key depends on the maker: Microsoft’s examples are F1, F2, F12 and Esc. When the key is unknown or the screen goes by too fast, Windows can restart straight into it. Open Settings, System, Recovery and choose Restart now beside Advanced startup; on the menu that follows, choose Troubleshoot, Advanced options, UEFI Firmware Settings. Holding Shift while choosing Restart opens the same menu. A Mac has no setup screen of this kind: on a Mac with Apple silicon or the T2 chip, the start-up security settings are in Startup Security Utility, which opens from macOS Recovery.

Inside UEFI setup, names and menus differ from maker to maker, but four settings matter for support work. The table gives what each one decides and what Windows 11 needs from it:

Setting What it decides What Windows 11 needs
Boot order Which device the PC tries first: the internal disk, a USB stick or the network Nothing fixed; an installer stick goes first only while you install
Boot mode UEFI, or Legacy (also called CSM, the Compatibility Support Module, which imitates an old BIOS) UEFI as the first or only mode
Secure Boot Whether the firmware refuses start-up software that no trusted key has signed Capable; switching it on is advised
TPM Whether the TPM is switched on and visible to Windows Switched on, version 2.0

The TPM setting hides under the most names. Microsoft lists Security Device, Security Device Support, TPM State, Intel PTT (Platform Trust Technology) and AMD fTPM among its labels, usually in an Advanced, Security or Trusted Computing menu.

Change one setting at a time and note the old value, because two of these can stop a PC from starting. A PC installed in Legacy mode sits on an MBR disk, and UEFI starts Windows only from a GPT: GUID Partition Table: the modern scheme for describing a disk's partitions that UEFI firmware expects, replacing the older MBR scheme. A UEFI install of Windows uses a GPT disk. disk, so switching the mode first leaves the PC with nothing to start. Microsoft’s MBR2GPT tool converts the disk in place without deleting data, with BitLocker suspended, and only then is the firmware switched to UEFI. Switching the TPM off, or clearing it, is on Microsoft’s list of changes that send a BitLocker drive into recovery.

These settings act at the very start of the boot chain. Step through one start of a BitLocker PC to see where Secure Boot checks a signature and where the TPM hands over the drive’s key:

Interactive · stage by stage One start of a BitLocker PC, from power to sign-in Step through one start to see where Secure Boot checks a signature and where the TPM releases the drive's key.
One start of a BitLocker PC, from power to sign-in, step 7 of 7. Showing Power on, UEFI firmware, Secure Boot check, Windows Boot Manager, Windows loader, Windows kernel, Sign-in screen. In focus: Sign-in screen.Power onUEFI firmwareSecure Boot checkWindows Boot ManagerWindows loaderWindows kernelSign-in screen

The drawing shows the whole scene; its 7 steps are listed below.

Every step as text
  1. Power reaches the board. The processor starts the firmware kept on a chip on the motherboard. Nothing on the disk has run yet, so no Windows setting can help at this point.
  2. UEFI sets up the hardware. UEFI tests and prepares the processor, memory and devices, then follows the boot order to pick what to start. The boot order and the UEFI or Legacy (CSM) mode take effect here.
  3. Secure Boot checks a signature. With Secure Boot on, the firmware checks the boot loader's signature against the certificates in its database and refuses one that is unsigned or revoked. Either way, it records each piece it starts in the TPM.
  4. The boot manager asks the TPM. Windows Boot Manager (bootmgfw.efi) runs from the EFI System Partition. On a BitLocker PC it asks the TPM for the drive's key: the TPM releases it only if the recorded measurements match the ones the key was sealed to. If they do not, this is where the recovery screen appears.
  5. The loader checks the kernel. The boot manager starts the Windows loader (winload.efi), which checks the kernel's signature before loading it. Microsoft calls this part Trusted Boot.
  6. The kernel checks the rest. The kernel checks the other start-up files and drivers, and starts anti-malware drivers before any third-party driver loads.
  7. Windows is ready. The start is complete. A wrong firmware setting shows itself before this point, as a PC that finds nothing to start or stops at the recovery screen, not as an error message inside Windows.

The key is released or kept back before Windows itself loads, which is why a firmware change shows up as a recovery screen and not as an error message inside Windows.

Checkpoint

Check: Reaching UEFI setup and its four settings

  1. One question A desktop was installed years ago in Legacy (CSM) mode. To meet the Windows 11 minimum, a technician switches its firmware to UEFI, and now the PC finds nothing to start. What should the order have been?

    Choose one answer.

    A hint

    Think about which partition style a UEFI start needs on the disk.

    Show the answer: One question

    Answer: Convert the disk from MBR to GPT with MBR2GPT, BitLocker suspended, then switch the firmware to UEFI

    A Legacy installation sits on an MBR disk, and UEFI starts Windows only from a GPT disk. Convert the disk first with MBR2GPT (with BitLocker suspended, because it changes the disk), then switch the firmware to UEFI.

Windows reports Secure Boot and the TPM without a restart

Before anyone opens UEFI setup, Windows can say what the firmware is doing. Open PowerShell as administrator and run Confirm-SecureBootUEFI. It gives three readings and one message that is not a reading at all:

  • True: the firmware supports Secure Boot and it is on.
  • False: the firmware supports Secure Boot and it is off. That still meets the Windows 11 minimum, which asks for Secure Boot capable firmware; Microsoft advises switching it on but does not require it.
  • “Cmdlet not supported on this platform.”: the PC starts in Legacy mode, or its firmware has no Secure Boot.
  • “Unable to set proper privileges. Access was denied.”: the window was not opened as administrator. This says nothing about the PC; run the cmdlet again in an elevated window.

System Information (msinfo32) shows the same answer as Secure Boot State, without PowerShell.

For the TPM, Get-Tpm in the same window lists TpmPresent, TpmReady and more. TpmPresent False means Windows cannot see a TPM, possibly because it is switched off in UEFI under one of the names above. TpmPresent True with TpmReady False means the TPM is there but Windows has not finished preparing it. Windows does that on its own; on a work PC whose policy saves TPM recovery information in Active Directory, it can finish only while a domain controller is reachable. Get-Tpm does not give the version, so open the TPM console, tpm.msc, and read Specification Version: Windows 11 needs 2.0.

Clearing the TPM is not a readiness fix

Wrong: “TpmReady is False, so clear the TPM in UEFI setup.” Clearing deletes every key the TPM holds, together with the data those keys protect, such as a sign-in PIN or a virtual smart card. Right: work out what stops Windows from preparing it. If a clear is ever needed, Microsoft says to do it from Windows (tpm.msc), never from UEFI, and never on a work PC unless the IT team asks for it.

The program below applies these readings to five PCs of one small office, recorded the way a technician writes them down before an upgrade. Run it, then change the Workshop PC’s "1.2" to "2.0" and run it again:

Windows 11 readiness of five recorded PCs Python · readiness/readiness.py
# Five PCs of one small office, as a technician wrote them down before a
# Windows 11 upgrade: what Confirm-SecureBootUEFI printed, TpmPresent and
# TpmReady from Get-Tpm, and the Specification Version shown by tpm.msc
# ("" when Windows found no TPM). The minimum is UEFI firmware that is
# Secure Boot capable, and a TPM 2.0.

DENIED = "Unable to set proper privileges. Access was denied."
NOT_SUPPORTED = "Cmdlet not supported on this platform."

PCS = [
    ("Reception PC", "True", True, True, "2.0"),
    ("Sales laptop", "False", True, False, "2.0"),
    ("Store-room desktop", NOT_SUPPORTED, False, False, ""),
    ("Workshop PC", "True", True, True, "1.2"),
    ("Front-desk laptop", DENIED, True, True, "2.0"),
]

# How much a finding weighs: 1 advice, 2 check firmware, 3 below minimum.
VERDICTS = {
    0: "Meets the minimum",
    1: "Meets the minimum",
    2: "Check firmware settings first",
    3: "Below the Windows 11 minimum",
}


def findings(secure_boot, tpm_present, tpm_ready, tpm_spec):
    """The (weight, text) findings for one PC's readings."""
    found = []
    if secure_boot == "False":
        found.append((1, "Secure Boot capable but off: advise turning it on"))
    elif secure_boot == NOT_SUPPORTED:
        found.append((2, "Secure Boot not supported: look for Legacy/CSM"))
    if not tpm_present:
        found.append((2, "No TPM visible: check PTT, fTPM, Security Device"))
    elif tpm_spec != "2.0":
        found.append((3, f"TPM {tpm_spec} found: Windows 11 needs 2.0"))
    elif not tpm_ready:
        found.append((1, "TPM 2.0 not ready yet: let Windows prepare it"))
    return found


tally = {}
for name, secure_boot, tpm_present, tpm_ready, tpm_spec in PCS:
    if secure_boot == DENIED:
        verdict, found = "No verdict: run PowerShell as administrator", []
    else:
        found = findings(secure_boot, tpm_present, tpm_ready, tpm_spec)
        verdict = VERDICTS[max((weight for weight, _ in found), default=0)]
    tally[verdict] = tally.get(verdict, 0) + 1
    print(f"{name}: {verdict}")
    for _, text in found:
        print(f"  - {text}")

print()
for verdict, count in tally.items():
    print(f"{count} x {verdict}")

Output

Reception PC: Meets the minimum
Sales laptop: Meets the minimum
  - Secure Boot capable but off: advise turning it on
  - TPM 2.0 not ready yet: let Windows prepare it
Store-room desktop: Check firmware settings first
  - Secure Boot not supported: look for Legacy/CSM
  - No TPM visible: check PTT, fTPM, Security Device
Workshop PC: Below the Windows 11 minimum
  - TPM 1.2 found: Windows 11 needs 2.0
Front-desk laptop: No verdict: run PowerShell as administrator

2 x Meets the minimum
1 x Check firmware settings first
1 x Below the Windows 11 minimum
1 x No verdict: run PowerShell as administrator

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 readiness.py

Two of the five meet the minimum, and one of them is the Sales laptop with Secure Boot off. The store-room desktop has two settings to look at, though Microsoft notes that a TPM 2.0 is not supported in Legacy or CSM mode, so its boot mode may be the only one at fault. The Workshop PC’s TPM 1.2 is below the minimum, and the front-desk reading has to be taken again in an elevated window.

Checkpoint

Check: Reading Secure Boot and the TPM from Windows

  1. Question 1 of 2 Confirm-SecureBootUEFI, run as administrator on a user's laptop, prints False. What does that mean for a Windows 11 upgrade?

    Choose one answer.

    Show the answer: Question 1 of 2

    Answer: The laptop is Secure Boot capable, so it meets that part of the minimum; turning Secure Boot on is advised

    The cmdlet has three readings: True (supported and on), False (supported and off) and the not-supported message (Legacy mode or no Secure Boot). Only the last one fails the Windows 11 minimum.

  2. Question 2 of 2 A colleague runs Confirm-SecureBootUEFI in an ordinary PowerShell window and gets "Unable to set proper privileges. Access was denied." What do you record about the PC?

    Choose one answer.

    Show the answer: Question 2 of 2

    Answer: Nothing yet; run it again in PowerShell opened as administrator

    An access-denied message means the reading was never taken. Open PowerShell as administrator and run the cmdlet again before writing anything in the ticket.

Secure Boot trusts certificates, and the 2011 ones expire

Secure Boot decides what may start by checking signatures against certificates kept in the firmware. Since Windows 8 introduced it, Windows PCs have carried the same set of Microsoft certificates from 2011, and those reach their expiry dates during 2026. Microsoft has issued 2023 replacements, which the update writes into the firmware’s lists of trusted signers:

Expiring certificate Replaced by What it signs
Microsoft Corporation KEK CA 2011 Microsoft Corporation KEK 2K CA 2023 Updates to the lists of allowed and revoked signatures
Microsoft Windows Production PCA 2011 Windows UEFI CA 2023 The Windows boot loader
Microsoft UEFI CA 2011 Microsoft UEFI CA 2023 Boot loaders and EFI apps from other vendors
Microsoft UEFI CA 2011 Microsoft Option ROM UEFI CA 2023 Option ROMs, the UEFI drivers that hardware brings with it

The last two rows split the old UEFI CA in two, so a PC can trust the drivers of its hardware without trusting every other vendor’s boot loader.

On a supported Windows PC that takes its updates from Microsoft, the change arrives through Windows Update, and most users need to do nothing. What they may notice is a restart: Microsoft warns that a limited number of devices restart one extra time while an update installs, after the certificate change is applied. That restart is the update finishing, not a crash. In a few cases, Microsoft says, a PC may not start or may ask for its BitLocker recovery key after receiving the certificates, so the rule of a reachable recovery key from the next section applies here too.

A PC that never gets the new certificates does not stop working. It keeps starting and installing ordinary updates, but it can no longer receive new protections for the earliest part of the start: new versions of Windows Boot Manager, new revocations and fixes for new boot-level weaknesses. The loss is silent, which is why a PC kept away from updates is worth a ticket of its own.

Key idea

The 2011 Secure Boot certificates are replaced by 2023 ones through Windows Update. One extra restart is expected, and a PC that misses the change keeps starting but stops receiving new start-up protections.

Checkpoint

Check: The Secure Boot certificate change

  1. One question After a Windows update, a user's PC restarted one more time than usual, and the update notes mention Secure Boot certificates. What do you tell the user?

    Choose one answer.

    Show the answer: One question

    Answer: The extra restart is expected after the certificate change is applied; nothing needs doing

    The one extra restart is part of the certificate update on some devices. It is expected, needs no ticket, and does not come back once the update is in.

A firmware update changes what BitLocker measured

Firmware updates reach a PC three ways: the PC maker’s own update app or support site; Windows Update, which delivers firmware as a driver package that UEFI applies during a restart (Surface devices, for one, get theirs this way); and on Linux the fwupd service, which takes updates from the Linux Vendor Firmware Service (LVFS) that the major distributions use. Whatever the route, keep the power steady. Microsoft’s advice for its Surface devices is to plug in, have at least 40 % battery, and leave the device connected and switched on until the update finishes.

The catch is BitLocker: The Windows feature that encrypts whole drives, so that the data on a lost, stolen or carelessly decommissioned device stays unreadable to whoever finds it. More in “Windows Security: Defender, firewall, BitLocker”. With a TPM, BitLocker seals the drive’s key to measurements of the early start-up parts that the TPM keeps in its TPM PCR: Platform Configuration Register: a measurement slot inside the TPM that records hashes of firmware and boot components. BitLocker seals its key to these measurements, so a firmware change triggers recovery.. New firmware measures differently, so on the first start after a BIOS or UEFI update the TPM keeps the key back and the PC asks for the 48-digit recovery key. Microsoft’s list of causes puts firmware upgrades beside a TPM that is switched off or cleared and changes to the boot manager.

For a planned update the answer is to suspend BitLocker first. Suspending decrypts nothing: the drive stays encrypted, but its key is left in the clear and nothing is checked at start-up, for as many restarts as -RebootCount says (one when it is left out, while 0 means until Resume-BitLocker). When the count runs out, BitLocker resumes and seals the key to the new measurements, with nobody typing a key:

Suspend BitLocker for one restart before a firmware update PowerShell · suspend/suspend.ps1
# Suspends BitLocker on C: for one restart, so the first start after a
# firmware update does not stop at the recovery screen. Run it in
# PowerShell opened as administrator, after confirming the recovery key.
# -RebootCount is the number of restarts the update needs: 1 when it is
# left out, while 0 waits for Resume-BitLocker. Afterwards,
# manage-bde -status shows whether protection is on again.

Suspend-BitLocker -MountPoint "C:" -RebootCount 1

A suspended drive can be read by anyone who starts the PC, so keep the count to the restarts the update needs, and check afterwards that protection is back on: manage-bde -status shows it. Step through the whole update:

Interactive · stage by stage A firmware update on a BitLocker laptop Step through the update in order; each step names what would go wrong without it.
A firmware update on a BitLocker laptop, step 6 of 6. Showing Check the recovery key, Suspend BitLocker, Connect mains power, Run the update, Restart and flash, Protection resumes. In focus: Protection resumes.Check the recovery keySuspend BitLockerConnect mains powerRun the updateRestart and flashProtection resumes

The drawing shows the whole scene; its 6 steps are listed below.

Every step as text
  1. Confirm the key first. Before touching the firmware, make sure the 48-digit recovery key can be read where it was saved: the user's account, the organisation's directory or a printout. If anything goes wrong later, it is the way back in.
  2. Suspend BitLocker. In PowerShell opened as administrator, run Suspend-BitLocker with -RebootCount set to the restarts the update needs (1 when it is left out). The drive stays encrypted, but nothing is checked at start-up until the count runs out.
  3. Connect mains power. Plug the laptop in and keep it switched on until the update ends. Microsoft's advice for its Surface devices is at least 40 % battery as well, because the firmware is rewritten during the update.
  4. Run the update. Start the PC maker's update app, or let Windows Update install the firmware package. Do not cancel it or switch the PC off while it works.
  5. Restart and flash. Windows hands the new firmware to UEFI, which writes it during the restart. The suspended drive opens without a check, so no recovery screen appears.
  6. Protection resumes. Back in Windows the count has run out: BitLocker resumes and seals the key to the new firmware's measurements. Run manage-bde -status to confirm that protection is on again.

Its first and last steps happen outside the update itself, and they are the two that make a failed update recoverable and a finished one protected again.

Find the recovery key before the update, not after

Confirm that the recovery key can be read before you start. If a PC stops at the recovery screen and nobody has its key, Microsoft cannot retrieve or recreate it, and the way back is to reset the device, losing what was on it.

Checkpoint

Check: Firmware updates and BitLocker

  1. One question A firmware update will restart a BitLocker laptop once. Which command keeps that start from stopping at the recovery screen and lets protection come back by itself?

    Choose one answer.

    Show the answer: One question

    Answer: Suspend-BitLocker -MountPoint "C:" -RebootCount 1

    Suspend-BitLocker skips the start-up check for the number of restarts given by -RebootCount (1 when it is left out). When the count runs out, protection resumes and the key is sealed to the new measurements.

Practise on the office’s PCs

The self-check below opens on the section where your answers have been weakest, and each right answer brings a harder question. Then write the Windows 11 decision yourself, as a function of the three readings the example used:

Practice that adapts to you

Practise this lesson

8 questions about 4 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.

  1. Question 1 of 8 A user cannot catch the key that opens UEFI setup at power-on. Which Windows path restarts the PC into it?

    Choose one answer.

    Show the answer: Question 1 of 8

    Answer: Settings, System, Recovery, Restart now beside Advanced startup, then Troubleshoot, Advanced options, UEFI Firmware Settings

    Advanced startup restarts the PC into a menu where Troubleshoot, Advanced options leads to UEFI Firmware Settings. It works when the startup key is unknown or the screen goes by too fast.

  2. Question 2 of 8 Get-Tpm shows TpmPresent False on a recent Intel desktop, and the Security menu of its UEFI setup has no item called TPM. What do you look for?

    Choose one answer.

    Show the answer: Question 2 of 8

    Answer: Intel PTT (Platform Trust Technology), the name many Intel PCs give their TPM switch

    The TPM switch hides under many names: Security Device, Security Device Support, TPM State, Intel PTT or Platform Trust Technology, and AMD fTPM, usually in an Advanced, Security or Trusted Computing menu.

  3. Question 3 of 8 Which reading tells you whether a PC's TPM is version 2.0?

    Choose one answer.

    Show the answer: Question 3 of 8

    Answer: Specification Version in the TPM console, tpm.msc

    Get-Tpm says whether a TPM is present and ready; the version comes from Specification Version in tpm.msc (or Security processor details in Windows Security).

  4. Question 4 of 8 A company laptop that has been away from the office for weeks shows TpmPresent True and TpmReady False. The company's policy saves TPM recovery information in Active Directory. What do you do first?

    Choose one answer.

    Show the answer: Question 4 of 8

    Answer: Connect it to the company network so that Windows can reach a domain controller and finish preparing the TPM

    TpmReady False with a TPM present means Windows has not finished preparing it. Work out what is stopping it, here the missing domain controller, before anyone thinks of clearing the TPM.

  5. Question 5 of 8 Which 2023 certificate takes over the signing of the Windows boot loader?

    Choose one answer.

    Show the answer: Question 5 of 8

    Answer: Windows UEFI CA 2023

    The 2011 set is replaced certificate by certificate: the KEK, the Windows boot loader's CA, the CA for other vendors' boot loaders, and a new separate CA for option ROMs.

  6. Question 6 of 8 A spare PC sat in a cupboard and missed every update while its 2011 Secure Boot certificates expired. It is switched on today. What happens?

    Choose one answer.

    Show the answer: Question 6 of 8

    Answer: It starts and works, but until it gets the 2023 certificates it cannot receive new protections for the early start-up

    An expired 2011 set does not stop a PC. It freezes the PC's early-boot protection: no new Windows Boot Manager versions, no new revocations and no fixes for new boot-level weaknesses until the 2023 certificates arrive.

  7. Question 7 of 8 Why does the first start after a BIOS update ask for the BitLocker recovery key when nobody suspended BitLocker?

    Choose one answer.

    Show the answer: Question 7 of 8

    Answer: The TPM releases the key only when the start-up measurements match the ones it was sealed to, and new firmware measures differently

    BitLocker on a TPM seals the drive's key to measurements of the firmware and the boot path. A BIOS or UEFI update changes them, so without a suspension the TPM keeps the key and the PC asks for the recovery key.

  8. Question 8 of 8 A technician suspends BitLocker with -RebootCount 0 for a firmware update. The update works and the laptop goes back to its user. What is wrong?

    Choose one answer.

    Show the answer: Question 8 of 8

    Answer: BitLocker is still suspended, so the drive's key stays unprotected until someone runs Resume-BitLocker

    Use a count of the restarts the update needs, or run Resume-BitLocker and check with manage-bde -status before the laptop leaves you.

Exercise · Easy · Python

Windows 11 readiness verdict

Write windows11_verdict(secure_boot, tpm_present, tpm_spec), which turns three readings from one PC into the verdict a technician records before a Windows 11 upgrade.

  • secure_boot is the text Confirm-SecureBootUEFI printed: "True", "False", "Cmdlet not supported on this platform." or "Unable to set proper privileges. Access was denied."
  • tpm_present is TpmPresent from Get-Tpm, True or False.
  • tpm_spec is the Specification Version from tpm.msc, such as "2.0" or "1.2", and "" when no TPM was found.

Return one of four verdicts, checked in this order:

  1. "run as administrator" when the Secure Boot reading is the access-denied message: there is no reading yet.
  2. "below minimum" when a TPM is present but its specification is not "2.0".
  3. "check firmware" when Secure Boot is not supported, or no TPM is present: both can be settings in UEFI setup.
  4. "meets minimum" otherwise. Windows 11 asks for Secure Boot capable firmware, so "False" meets it as well as "True".

Starter code · starter.py

def windows11_verdict(secure_boot: str, tpm_present: bool, tpm_spec: str) -> str:
    """Return "run as administrator", "below minimum", "check firmware" or "meets minimum"."""
    # Your code here
    pass
The sample tests · sample_tests.py
from starter import windows11_verdict

DENIED = "Unable to set proper privileges. Access was denied."
NOT_SUPPORTED = "Cmdlet not supported on this platform."


def test_secure_boot_on_meets():
    assert windows11_verdict("True", True, "2.0") == "meets minimum"


def test_secure_boot_off_still_meets():
    assert windows11_verdict("False", True, "2.0") == "meets minimum"


def test_legacy_mode_checks_firmware():
    assert windows11_verdict(NOT_SUPPORTED, True, "2.0") == "check firmware"


def test_no_tpm_checks_firmware():
    assert windows11_verdict("True", False, "") == "check firmware"


def test_tpm_1_2_is_below_minimum():
    assert windows11_verdict(NOT_SUPPORTED, True, "1.2") == "below minimum"


def test_access_denied_has_no_verdict():
    assert windows11_verdict(DENIED, True, "1.2") == "run as administrator"
A hint

Follow the order of the four rules with one if each, and return as soon as one applies. The access-denied text is checked first because it means nothing was read; only "True" and "False" show Secure Boot capable firmware.

The sample tests run on this device, in your browser (Pyodide): nothing is sent to mysmartcopilot.com. The first run downloads Python (about 13.5 MB), which is kept for the next runs. A check in your browser is feedback for you, not proof that the code is right for every input.

Interview questions

The warm-up is answered in full below. The two longer cases both start from a laptop that BitLocker protects, one a developer’s dual-boot plan and the other a recovery screen that keeps coming back; decide what you would check before anything else, then compare it with each case’s first step:

Model answers open with any pass: ₹79 for 1 week ($2.99), one payment that never renews.

  1. Fresher to mid · Warm-up

    A user asks whether Secure Boot is on. How do you check from Windows, and how do you read each answer?

    I open PowerShell as administrator and run Confirm-SecureBootUEFI. True means the firmware supports Secure Boot and it is on; False means it supports Secure Boot and it is off; "Cmdlet not supported on this platform" means the PC starts in Legacy mode or has no Secure Boot. If the window was not elevated, the cmdlet says access was denied, and that says nothing about the PC, so I run it again. Without PowerShell, msinfo32 shows Secure Boot State. Then I read the answer against what the user needs: for Windows 11, False is still Secure Boot capable and meets the minimum, though I would advise switching it on, while "not supported" sends me to UEFI setup to look at the boot mode before anyone talks about new hardware.

  2. Mid to senior

    A developer wants to dual-boot Ubuntu alongside Windows 11 on their work laptop. The laptop has Secure Boot enabled and BitLocker on the Windows drive. Walk through the steps and the risks.

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page. First step and follow-ups

  3. Fresher to mid

    A user updated their laptop's BIOS last night. Since then it stops at the BitLocker recovery screen at every start, even after they typed the 48-digit key once. Why did the first prompt appear, why does it keep coming back, and how do you fix it?

    Model answer, Pro. First step and follow-ups

Flashcards · 6 cards

Recall it, then check

Say the answer to yourself before you look: recalling it is what makes it stick.

  1. Which four firmware settings decide how a PC starts?

    The boot order, UEFI or Legacy (CSM) mode, Secure Boot and the TPM. UEFI setup opens from a startup key or from Advanced startup in Windows.

  2. Confirm-SecureBootUEFI answers False. Does the PC still meet Windows 11's minimum?

    Yes: Windows 11 needs firmware that is Secure Boot capable and a TPM 2.0, not Secure Boot turned on. An answer of not supported, or a missing TPM, sends you to the firmware settings.

  3. Why are the Secure Boot and TPM checks run in a window opened as administrator?

    Because an access-denied message is not a reading of the setting.

  4. Why is clearing a TPM a last resort?

    It deletes every key the TPM holds. When it has to be done, it is done from Windows.

  5. What happens to the 2011 Secure Boot certificates from Microsoft?

    Windows Update replaces them with 2023 ones, and one extra restart is expected. A PC that misses the change keeps starting but stops getting new start-up protections.

  6. What do you do before a firmware update on a PC protected by BitLocker?

    Confirm the recovery key, keep the PC on mains power and suspend BitLocker for the restarts the update needs, then check that protection has resumed. The update changes what BitLocker measured at start-up.

Key takeaways

  • UEFI setup holds the four settings that decide how a PC starts, the boot order, UEFI or Legacy (CSM) mode, Secure Boot and the TPM, and it opens from a startup key or from Advanced startup in Windows.
  • Windows 11 needs UEFI firmware that is Secure Boot capable and a TPM 2.0, so a Confirm-SecureBootUEFI answer of False still meets the minimum, while “not supported” or a missing TPM sends you to the firmware settings.
  • The checks are taken in a window opened as administrator, because an access-denied message is not a reading, and clearing a TPM is a last resort, done from Windows, because it deletes every key the TPM holds.
  • Secure Boot’s Microsoft certificates from 2011 are replaced by 2023 ones through Windows Update; one extra restart is expected, and a PC that misses them keeps starting but loses new start-up protections.
  • Before a firmware update on a BitLocker PC, confirm the recovery key, keep the PC on mains power and suspend BitLocker for the restarts the update needs, then check that protection has resumed.

Terms in this lesson

TPM PCR
Platform Configuration Register: a measurement slot inside the TPM that records hashes of firmware and boot components. BitLocker seals its key to these measurements, so a firmware change triggers recovery.

References

Report a problem with this lesson

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.