![]() ![]() }Until($Volume.VolumeStatus -eq 'FullyEncrypted') Write-Progress -Activity "Encrypting volume $($Volume.MountPoint)" -Status "Encryption Progress: $($Volume.EncryptionPercentage)%" -PercentComplete $Volume.EncryptionPercentage # To help testing comment or delete afterwards $Volume = Get-BitLockerVolume -MountPoint "$($MountLetter):" $BitlockerPassword = ::GeneratePassword($PasswordLength,$NonAlphCh) | ConvertTo-SecureString -AsPlainText -ForceĮnable-BitLocker -MountPoint "$($MountLetter):\" -EncryptionMethod 'XtsAes256' -Password $BitlockerPassword -PasswordProtector -SkipHardwareTest | Out-Null ![]() $NonAlphCh = ::Round($PasswordLength/$(Get-Random -Minimum 1 -Maximum 10)) Like /u/vBurak said it's just easier to fully encrypt the drive with a random throw away password, like so: Add-Type -AssemblyName System.Web I had this to test, but i never had the chance. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |