Skip to content

Commit 832af91

Browse files
authored
Update Microwin-NewFirstRun.ps1 (#3938)
1 parent 6d9ed90 commit 832af91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

functions/microwin/Microwin-NewFirstRun.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ function Microwin-NewFirstRun {
6666
6767
}
6868
69+
if ((Get-BitLockerVolume -MountPoint $Env:SystemDrive).ProtectionStatus -eq 'On') {
70+
Write-Host "Disabling BitLocker..."
71+
Disable-BitLocker -MountPoint $Env:SystemDrive
72+
}
73+
6974
# Get BCD entries and set bootmgr timeout accordingly
7075
try
7176
{

0 commit comments

Comments
 (0)