Files

17 lines
400 B
PowerShell
Raw Permalink Normal View History

2025-08-05 14:47:43 +00:00
<#
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