Additional Script Updates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Detection Script: Detect_SecureBoot.ps1
|
||||
|
||||
# Check if Secure Boot is enabled
|
||||
if (Confirm-SecureBootUEFI) {
|
||||
Write-Output "Secure Boot is enabled."
|
||||
exit 0
|
||||
} else {
|
||||
Write-Output "Secure Boot is not enabled."
|
||||
exit 1
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Remediation Script: Remediate_SecureBoot.ps1
|
||||
|
||||
# Enable Secure Boot
|
||||
$regKey = "HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\State"
|
||||
Set-ItemProperty -Path $regKey -Name "UEFISecureBootEnabled" -Value 1
|
||||
|
||||
Write-Output "Secure Boot has been enabled. A system reboot is required for changes to take effect."
|
||||
Reference in New Issue
Block a user