From 832af914e97e772f1be213856ad2005bb9172cdd Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Wed, 28 Jan 2026 19:26:44 +0200 Subject: [PATCH] Update Microwin-NewFirstRun.ps1 (#3938) --- functions/microwin/Microwin-NewFirstRun.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/microwin/Microwin-NewFirstRun.ps1 b/functions/microwin/Microwin-NewFirstRun.ps1 index 2cbf842d..c2c7e427 100644 --- a/functions/microwin/Microwin-NewFirstRun.ps1 +++ b/functions/microwin/Microwin-NewFirstRun.ps1 @@ -66,6 +66,11 @@ function Microwin-NewFirstRun { } + if ((Get-BitLockerVolume -MountPoint $Env:SystemDrive).ProtectionStatus -eq 'On') { + Write-Host "Disabling BitLocker..." + Disable-BitLocker -MountPoint $Env:SystemDrive + } + # Get BCD entries and set bootmgr timeout accordingly try {