T The Triage ManualTechnical Guides for IT Emergencies
P4 · PKI & Certificate Management

Secure Boot Certificate Migration Using PowerShell Scripts in Windows 11 (KB5089549)

The May 2026 cumulative update KB5089549 introduces C:\Windows\SecureBoot\ExampleRolloutScripts, containing seven Microsoft-provided PowerShell scripts to assist enterprise administrators in migrating Secure Boot certificates at scale. These sample scripts must be reviewed, tested in a pilot environment, and executed in sequence via elevated PowerShell before broad enterprise deployment. Post-migration, certificate state should be validated using Confirm-SecureBootUEFI and event logs monitored for Secure Boot-related errors.

Indicators

Likely causes

Diagnostic steps

  1. Verify KB5089549 is installed: Get-HotFix -Id KB5089549
  2. Confirm the ExampleRolloutScripts folder exists: Test-Path 'C:\Windows\SecureBoot\ExampleRolloutScripts'
  3. List all seven PowerShell scripts: Get-ChildItem 'C:\Windows\SecureBoot\ExampleRolloutScripts' -Filter *.ps1
  4. Review the content and inline documentation of each script before execution: Get-Content 'C:\Windows\SecureBoot\ExampleRolloutScripts\<ScriptName>.ps1'
  5. Check current Secure Boot status on the device: Confirm-SecureBootUEFI — should return True on UEFI systems with Secure Boot enabled
  6. Query current Secure Boot UEFI variables if needed for baseline documentation: Get-SecureBootUEFI -Name PK | Select-Object -ExpandProperty bytes
  7. Run appropriate scripts with required parameters in an isolated test environment first, using an elevated PowerShell session; do not execute directly in production
  8. Review script output and Secure Boot event logs for errors or warnings: Get-WinEvent -LogName 'Microsoft-Windows-Kernel-Boot/Operational' | Where-Object { $_.LevelDisplayName -ne 'Information' }

Resolution path

Prevention

Tools

References

Windows 11Secure BootKB5089549PowerShellcertificate migrationUEFIcumulative updateenterprisePKIsecurity hardeningMay 2026