17 lines
400 B
PowerShell
17 lines
400 B
PowerShell
<#
|
|
Author: Gabe Kerntke
|
|
Date: 04-29-2025
|
|
|
|
.Synopsis
|
|
Script disables bitlocker if enabled and forces a restart of the computer
|
|
|
|
.Modified
|
|
2025-04-29 (GabeK) - Original script created
|
|
|
|
#>
|
|
|
|
$BLinfo = Get-Bitlockervolume
|
|
If ($blinfo.ProtectionStatus -eq 'On' -and $blinfo.EncryptionPercentage -eq '100') {
|
|
Manage-bde -Protectors -Disable C: -RebootCount 1
|
|
}
|
|
Restart-Computer -Force |