=============================================
# Run as Administrator
$DriveLetter = "E:"
$Password = "Welcome@1989!" # Replace with the actual BitLocker password
# Convert plain text password to secure string
$SecurePassword = ConvertTo-SecureString -String $Password -AsPlainText -Force
# Unlock the drive
Unlock-BitLocker -MountPoint $DriveLetter -Password $SecurePassword
# Enable auto-unlock (stores the key protector securely so password not needed at startup)
Enable-BitLockerAutoUnlock -MountPoint $DriveLetter
No comments:
Post a Comment