Additional Script Updates
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Detection Script: Detect_BitLocker.ps1
|
||||
|
||||
# Check if BitLocker is enabled
|
||||
$bitLockerStatus = Get-BitLockerVolume -MountPoint "C:"
|
||||
|
||||
if ($bitLockerStatus.ProtectionStatus -ne "On") {
|
||||
Write-Output "BitLocker is not enabled on the system drive."
|
||||
exit 1
|
||||
} else {
|
||||
Write-Output "BitLocker is enabled on the system drive."
|
||||
exit 0
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# Remediation Script: Remediate_BitLocker.ps1
|
||||
|
||||
# Enable BitLocker on the system drive
|
||||
Enable-BitLocker -MountPoint "C:" -EncryptionMethod XtsAes256 -UsedSpaceOnly -TpmProtector
|
||||
|
||||
Write-Output "BitLocker has been enabled on the system drive."
|
||||
Reference in New Issue
Block a user