Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $TPMStatus = Get-Tpm
- if ($TPMStatus.TpmPresent -and $TPMStatus.TpmVersion -eq "2.0") {
- $BitLockerStatus = Get-BitLockerVolume -MountPoint "C:"
- if ($BitLockerStatus.VolumeStatus -ne "FullyEncrypted") {
- Enable-BitLocker -MountPoint "C:" -UsedSpaceOnly -SkipHardwareTest -RecoveryPasswordProtector
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement