From cfc3f1723832c99a1416c8eb2b9b7f6eeca69062 Mon Sep 17 00:00:00 2001 From: Gabe Date: Tue, 5 Aug 2025 14:47:43 +0000 Subject: [PATCH] Upload files to "Utility Scripts" --- Utility Scripts/Reboot (Main Script).ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Utility Scripts/Reboot (Main Script).ps1 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