PowerShell script to validate Secure Boot and check progress of the Windows UEFI CA 2023 certificate update on a device.
It combines:
- Secure Boot status checks
- Registry status from
UEFICA2023Status - System event log analysis for update progression and troubleshooting events
- A final overall device status summary
- Whether Secure Boot is enabled.
- Registry status at:
HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing- value:
UEFICA2023Status
- Relevant System event IDs for expected update progression and known failure/block conditions.
- Whether the device appears fully updated (based on both registry state and Event ID
1808).
- Windows device with PowerShell.
- Administrator privileges.
- Access to System event logs.
| Parameter | Type | Default | Description |
|---|---|---|---|
-DaysBack |
int |
90 |
Number of days back to search in the System event log. Valid range: 1-730. |
-MaxEvents |
int |
1 |
Maximum number of events to return per Event ID. Valid range: 1-100. |
-ResultOnly |
switch |
False |
Shows only final overall status without detailed event sections. |
Run from an elevated PowerShell session:
.\Check-UEFICA2023.ps1Search last 30 days and return up to 5 events per ID:
.\Check-UEFICA2023.ps1 -DaysBack 30 -MaxEvents 5Show only the final status line:
.\Check-UEFICA2023.ps1 -ResultOnlyWhen -ResultOnly is not used, output includes:
- Secure Boot status
- Registry status for UEFI CA 2023
- Progression Events
- Troubleshoot Events
- Overall Device Status
Final status uses:
- ✅ device appears fully updated
- ❌ device may not be fully updated
The script tracks expected progression using these event IDs:
1801,1036,1044,1045,1043,1800,1799,1808
Event 1808 indicates the device has been fully updated.
The script also checks for known issue events, including:
1032,1795,1796,1797,1798,1802,1803
These may indicate firmware, BitLocker, signing, or compatibility problems that block completion.
- If not run as Administrator, the script writes an error and exits with code
1.
- A registry status of
Updatedwithout Event1808may still indicate incomplete rollout state. - Event visibility depends on log retention and selected
-DaysBackwindow. - Event descriptions are based on Microsoft Secure Boot update documentation.
- Best-case result:
- Secure Boot enabled
UEFICA2023StatusisUpdated- Event
1808present
- Needs attention:
- Missing progression events
- Presence of troubleshoot events
- Final output says device may not be fully updated
- Secure Boot playbook for certificates expiring in 2026
- Registry key updates for Secure Boot: Windows devices with IT-managed updates - Microsoft Support
- Secure Boot troubleshooting guide - Microsoft Support
- Secure Boot DB and DBX variable update events - Microsoft Support
- Act now: Secure Boot certificates expire in June 2026 - Windows IT Pro Blog