Update enable-bitlocker.ps1
This commit is contained in:
1 parent
67ae566087
commit
b3484598ff
1 file changed
+1
-1
@@ -15,7 +15,7 @@ if ($bitlockerStatus.ProtectionStatus -eq "On") {
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
|
||||
# Prompt user to select save location for recovery key
|
||||
$saveDialog = New-Object System.Windows.Forms.SaveFileDialog
|
||||
$saveDialog = [System.Windows.Forms.SaveFileDialog]::new()
|
||||
$saveDialog.Filter = "Text Files (*.txt)|*.txt"
|
||||
$saveDialog.Title = "Select location to save BitLocker recovery key"
|
||||
$saveDialog.FileName = "BitLocker-RecoveryKey-$env:COMPUTERNAME-$(Get-Date -Format 'yyyy-MM-dd').txt"
|
||||
|
||||
Reference in new issue
Block a user