繁体   English   中英

通过操作系统驱动器 (C:\\) 上的 Powershell 使用 BitLocker 启用磁盘加密

[英]Enabling Disk Encryption with BitLocker Via Powershell On the Operating System Drive (C:\)

我希望这里有人遇到了和我一样的问题。

奇怪的是,运行我的 Powershell 脚本以启用 Bitlocker,有时似乎达到 95%,但大多数时候它会失败。

操作系统 - Windows 10 Professional 1809 GPO - 运行 Microsoft 的最佳实践

我一直在阅读通过 Powershell 设置 Bitlocker 的多个论坛和 Windows 最佳实践,似乎没有一个有具体的答案

Enable-BitLocker -MountPoint "C:" -EncryptionMethod Aes256 -RecoveryKeyPath "Valid Path" -RecoveryKeyProtector

do 
{
    $Volume = Get-BitLockerVolume -MountPoint C:
    Write-Progress -Activity "Encrypting volume $($Volume.MountPoint)" -Status "Encryption Progress:" -PercentComplete $Volume.EncryptionPercentage
    Start-Sleep -Seconds 1
}
until ($Volume.VolumeStatus -eq 'FullyEncrypted')

####################################################################
"Valid Path" refers to a valid UNC path with valid credentials.

输出似乎回来了:

#################################################################
Enable-BitLockerInternal : Value does not fall within the expected range.
At C:\windows\system32\WindowsPowerShell\v1.0\Modules\BitLocker\BitLocker.psm1:3733 char:48
+ ... eInternal = Enable-BitLockerInternal -MountPoint $BitLockerVolumeInte ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Enable-BitLockerInternal

我相信使用低于组策略要求的加密方法的自加密驱动器会发生这种情况。

我的修复:

  1.  manage-bde -off C:
  2. 删除C:\\Windows\\System32\\Recovery

  3. 等待它解密

  4. 重新运行enable-bitlocker

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM