Update enable-bitlocker.ps1
This commit is contained in:
1 parent
f95749cd3d
commit
5d58d96bec
1 file changed
+1
-1
@@ -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-RecoveryKey-$(Get-Date -Format 'yyyy-MM-dd').txt"
|
||||
$saveDialog.FileName = "BitLocker-$env:COMPUTERNAME-$(Get-Date -Format 'yyyy-MM-dd').txt"
|
||||
|
||||
if ($saveDialog.ShowDialog() -eq 'OK') {
|
||||
$keyPath = $saveDialog.FileName
|
||||
|
||||
Reference in new issue
Block a user