Files
Intune/intune/Externally Sourced Remediations/Reporting/Get-BitLockerStatusReport/Detect-BitLockerStatusReport.ps1
2025-05-19 15:19:36 -04:00

12 lines
382 B
PowerShell

# Check BitLocker encryption status
$bitLockerStatus = Get-BitLockerVolume | Select-Object MountPoint, VolumeStatus, EncryptionPercentage
# Output the BitLocker encryption status
# Write-Output $bitLockerStatus
$csvPath = "C:\temp\BitLockerStatus.csv"
$bitLockerStatus | Export-Csv -Path $csvPath -NoTypeInformation
Write-Output "BitLocker status exported to $csvPath"
Exit 0