Skip to content

Commit

Permalink
Merge pull request #1065 from eltociear/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als authored Apr 3, 2024
2 parents e021fd5 + 93e222b commit 14fc020
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ $pages = @(
}
},
@{
Title = "VBS Security Properties Avaliable"
Title = "VBS Security Properties Available"
Commands = {
$AvailableSecurityProperties = (Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard).AvailableSecurityProperties

$VirtualizationBasedSecurityAvaliableSecurity = @(
$VirtualizationBasedSecurityAvailableSecurity = @(
"None",
"Hypervisor support",
"Secure Boot",
Expand All @@ -190,23 +190,23 @@ $pages = @(
)

if ($AvailableSecurityProperties -contains '0') {
Write-Host "No security features are avaliable for Virtualization Based Security.`n" -ForegroundColor Green
Write-Host "No security features are available for Virtualization Based Security.`n" -ForegroundColor Green
} else {
Write-Host "Security features avaliable for Virtualization Based Security:`n" -ForegroundColor Yellow
Write-Host "Security features available for Virtualization Based Security:`n" -ForegroundColor Yellow
}

foreach ($feature in $VirtualizationBasedSecurityAvaliableSecurity) {
foreach ($feature in $VirtualizationBasedSecurityAvailableSecurity) {
if ($feature -eq "None") {
continue
}

Write-Host " - " -NoNewLine

if ($AvailableSecurityProperties -contains $VirtualizationBasedSecurityAvaliableSecurity.IndexOf($feature)) {
Write-Host "$feature is avaliable" -ForegroundColor Green
if ($AvailableSecurityProperties -contains $VirtualizationBasedSecurityAvailableSecurity.IndexOf($feature)) {
Write-Host "$feature is available" -ForegroundColor Green
} else {
# $($VirtualizationBasedSecurityAvaliableSecurity.IndexOf($feature)).
Write-Host "$feature is not avaliable" -ForegroundColor Red
# $($VirtualizationBasedSecurityAvailableSecurity.IndexOf($feature)).
Write-Host "$feature is not available" -ForegroundColor Red
}
}
}
Expand Down Expand Up @@ -254,4 +254,4 @@ function Show-Page {
Wait-Key
}

Show-Page
Show-Page

0 comments on commit 14fc020

Please sign in to comment.