Files
tacticalrmm/scripts/bitlocker_encrypted_drive_c.ps1
meyerje a5efb4e16a Added scripts from https://github.com/ThatsNASt PR
Added all but the Reset-TSGracePeriod.ps1 script as it prompts for input.
2020-10-08 09:52:02 -05:00

10 lines
421 B
PowerShell

## Copied from https://github.com/ThatsNASt/tacticalrmm to add to new pull request for https://github.com/wh1te909/tacticalrmm
$x = Get-WMIObject -Namespace "root/CIMV2/Security/MicrosoftVolumeEncryption" -query "SELECT * FROM Win32_EncryptableVolume WHERE DriveLetter='C:'";
$y = $x.GetProtectionStatus().ProtectionStatus
if ($y -eq 1) {
Write-Host "OK"; exit 0
}
else {
Write-Host "FAIL $y"; exit 1
}