12 lines
382 B
PowerShell
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 |