diff --git a/Utility Scripts/Reboot (Main Script).ps1 b/Utility Scripts/Reboot (Main Script).ps1 new file mode 100644 index 0000000..3d60752 --- /dev/null +++ b/Utility Scripts/Reboot (Main Script).ps1 @@ -0,0 +1,17 @@ +<# +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 \ No newline at end of file