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

12 lines
344 B
PowerShell

# Detection Script: Detect_BitLocker.ps1
# Check if BitLocker is enabled
$bitLockerStatus = Get-BitLockerVolume -MountPoint "C:"
if ($bitLockerStatus.ProtectionStatus -ne "On") {
Write-Output "BitLocker is not enabled on the system drive."
exit 1
} else {
Write-Output "BitLocker is enabled on the system drive."
exit 0
}