Files
Intune/intune/Externally Sourced Remediations/DeviceCompliance/Get-SecureBoot/Detect_SecureBoot.ps1
2025-05-19 15:19:36 -04:00

10 lines
233 B
PowerShell

# 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
}