Advertisement
Guest User

Untitled

a guest
Jan 18th, 2024
1,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $TPMStatus = Get-Tpm
  2. if ($TPMStatus.TpmPresent -and $TPMStatus.TpmVersion -eq "2.0") {
  3.     $BitLockerStatus = Get-BitLockerVolume -MountPoint "C:"
  4.     if ($BitLockerStatus.VolumeStatus -ne "FullyEncrypted") {
  5.         Enable-BitLocker -MountPoint "C:" -UsedSpaceOnly -SkipHardwareTest -RecoveryPasswordProtector
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement