-
Notifications
You must be signed in to change notification settings - Fork 632
Adding new section to document how to use Get-SecureBootSVN cmdlet #4090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SochiOgbuanya
wants to merge
2
commits into
MicrosoftDocs:main
Choose a base branch
from
SochiOgbuanya:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,97 @@ | ||||||
| --- | ||||||
| description: Use this topic to retrieve Secure Boot Security Version Number (SVN) data from UEFI firmware and the boot manager to assess compliance with Secure Boot policies on a system. | ||||||
| external help file: Microsoft.SecureBoot.Commands.dll-Help.xml | ||||||
| Module Name: SecureBoot | ||||||
| ms.date: 04/01/2026 | ||||||
| online version: https://learn.microsoft.com/powershell/module/secureboot/get-securebootsvn?view=windowsserver2022-ps&wt.mc_id=ps-gethelp | ||||||
| title: Get-SecureBootSVN | ||||||
| --- | ||||||
|
|
||||||
| # Get-SecureBootSVN | ||||||
|
|
||||||
| ## SYNOPSIS | ||||||
| Gets Secure Boot Security Version Number (SVN) information and compliance status for the system firmware and boot manager. | ||||||
|
|
||||||
| ## SYNTAX | ||||||
|
|
||||||
| ### YAML | ||||||
| ``` | ||||||
| Get-SecureBootSVN | ||||||
| [-BootManagerPath <String>] | ||||||
| [<CommonParameters>] | ||||||
| ``` | ||||||
|
|
||||||
|
|
||||||
| ## DESCRIPTION | ||||||
| The **Get-SecureBootSVN** cmdlet retrieves Secure Boot Security Version Number (SVN) information from the system’s UEFI firmware and the currently installed or specified boot manager. | ||||||
| It evaluates whether the system is compliant with the firmware’s Secure Boot policy. The cmdlet must be run from an elevated PowerShell session on a UEFI-based system with Secure Boot enabled. | ||||||
|
|
||||||
| ## EXAMPLES | ||||||
|
|
||||||
| ### Example 1: Get current Secure Boot SVN compliance status | ||||||
|
|
||||||
| ### YAML | ||||||
| ``` | ||||||
| Get-SecureBootSVN | ||||||
| ``` | ||||||
|
|
||||||
| This command retrieves the firmware’s required SVN, the current boot manager’s SVN, any staged (pending) SVN updates, and evaluates whether the system is compliant. | ||||||
|
|
||||||
| ### Example 2: Check SVN compliance for a specific boot manager file | ||||||
|
|
||||||
| ### YAML | ||||||
| ``` | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| Get-SecureBootSVN -BootManagerPath "D:\Recovery\bootmgfw.efi" | ||||||
| ``` | ||||||
|
|
||||||
| This command checks the SVN of the specified boot manager file and compares it against the system’s firmware and staged SVN requirements. | ||||||
|
|
||||||
| ## PARAMETERS | ||||||
|
|
||||||
| ### -BootManagerPath | ||||||
| Specifies the full path to a boot manager `.EFI` file to evaluate. | ||||||
| The cmdlet reads the SVN from the specified file and compares it to the system’s firmware and staged SVN values. | ||||||
|
|
||||||
| ```yaml | ||||||
| Type: String | ||||||
| Default value: None | ||||||
| Accept pipeline input: False | ||||||
| Accept wildcard characters: False | ||||||
| Parameter Sets: (All) | ||||||
|
|
||||||
| Position: Named | ||||||
| Mandatory: False | ||||||
| Value from pipeline: False | ||||||
| Value from pipeline by property name: False | ||||||
| Value from remaining arguments: False | ||||||
| ``` | ||||||
|
|
||||||
| ## Outputs | ||||||
| This cmdlet returns a SecureBootSVNInfo object with the following properties: | ||||||
|
|
||||||
| - **FirmwareSVN – The current SVN requirement enforced by the UEFI firmware.** | ||||||
| - **BootManagerSVN – The SVN of the currently installed or specified boot manager.** | ||||||
| - **StagedSVN – The SVN of any pending Secure Boot update installed on the system and not yet applied to the firmware.** | ||||||
| - **ComplianceStatus – Indicates whether the boot manager meets the firmware’s SVN requirement.** | ||||||
| - **BootManagerPath – (Optional) The path to the boot manager file tested, if specified.** | ||||||
|
|
||||||
| ## Notes | ||||||
|
|
||||||
| - This cmdlet is read-only and does not modify any firmware or system settings. | ||||||
| - On systems without Secure Boot or UEFI support, the cmdlet returns an error or empty output. | ||||||
| - The cmdlet must be run from an elevated PowerShell session. | ||||||
|
|
||||||
| ## Related Links | ||||||
|
|
||||||
| [Confirm-SecureBootUEFI](./Confirm-SecureBootUEFI.md) | ||||||
|
|
||||||
| [Format-SecureBootUEFI](./Format-SecureBootUEFI.md) | ||||||
|
|
||||||
| [Get-SecureBootPolicy](./Get-SecureBootPolicy.md) | ||||||
|
|
||||||
| [Get-SecureBootUEFI](./Get-SecureBootUEFI.md) | ||||||
|
|
||||||
| [Monitoring Secure Boot certificate status with Microsoft Intune remediations](https://support.microsoft.com/en-us/topic/monitoring-secure-boot-certificate-status-with-microsoft-intune-remediations-6696a27b-fa09-4570-b112-124965adc87f) | ||||||
|
|
||||||
| [Secure Boot Certificate Updates for Azure Virtual Desktop](https://support.microsoft.com/en-us/topic/secure-boot-certificate-updates-for-azure-virtual-desktop-06a8a1bc-2510-4ead-9bea-3698e1d6b1db) | ||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get-SecureBootSVN [-BootManagerPath ] []