Skip to content

Commit 6bf8a98

Browse files
Adding Virtualization-Based Security feature names to Get-ComputerInfo (PowerShell#16415)
1 parent e44fbff commit 6bf8a98

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3684,7 +3684,22 @@ public enum DeviceGuardHardwareSecure
36843684
/// <summary>
36853685
/// Secure Memory Overwrite.
36863686
/// </summary>
3687-
SecureMemoryOverwrite = 4
3687+
SecureMemoryOverwrite = 4,
3688+
3689+
/// <summary>
3690+
/// UEFI Code Readonly.
3691+
/// </summary>
3692+
UEFICodeReadonly = 5,
3693+
3694+
/// <summary>
3695+
/// SMM Security Mitigations 1.0.
3696+
/// </summary>
3697+
SMMSecurityMitigations = 6,
3698+
3699+
/// <summary>
3700+
/// Mode Based Execution Control.
3701+
/// </summary>
3702+
ModeBasedExecutionControl = 7
36883703
}
36893704

36903705
/// <summary>

test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,8 @@ try {
13041304
"3" = "DMAProtection"
13051305
"4" = "SecureMemoryOverwrite"
13061306
"5" = "UEFICodeReadonly"
1307-
"6" = "SMMSecurityMitigations1.0"
1307+
"6" = "SMMSecurityMitigations"
1308+
"7" = "ModeBasedExecutionControl"
13081309
}
13091310
$smartStatusValues = @{
13101311
"0" = "Off"

0 commit comments

Comments
 (0)