Update enable-bitlocker.ps1

This commit is contained in:
rogier committed 2025-01-21 00:30:42 +01:00
1 parent 5d58d96bec
commit 9343b687a7
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ if ($bitlockerStatus.ProtectionStatus -eq "On") {
$saveDialog = New-Object System.Windows.Forms.SaveFileDialog
$saveDialog.Filter = "Text Files (*.txt)|*.txt"
$saveDialog.Title = "Select location to save BitLocker recovery key"
$saveDialog.FileName = "BitLocker-$env:COMPUTERNAME-$(Get-Date -Format 'yyyy-MM-dd').txt"
$saveDialog.FileName = "BitLocker-$(Get-Date -Format 'yyyy-MM-dd').txt"
if ($saveDialog.ShowDialog() -eq 'OK') {
$keyPath = $saveDialog.FileName