GPO and Enable-BitLocker Commands
Create the GPO :
Create power-shell:
How it works
To find the key
Last updated
Last updated
# Check if BitLocker is already enabled
$checkBitLocker = Get-BitLockerVolume -MountPoint "C"
if ($checkBitLocker.ProtectionStatus -eq "On") {
Write-Output "⚠️ BitLocker is already enabled on C:. Exiting script."
Exit
}
Start-Sleep -Seconds 8
# Enable BitLocker without creating a new key
Enable-BitLocker -MountPoint C: -SkipHardwareTest -RecoveryPasswordProtector
Write-Output "✅ BitLocker has been enabled. GPO will handle key backup to AD."gpresult /r