Skip to content

Commit

Permalink
Set Boot Manager entry timeout to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Nov 22, 2024
1 parent 39ee4d5 commit a45402e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions functions/microwin/Microwin-NewFirstRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ function Microwin-NewFirstRun {
{
}
# Get BCD entries and set bootmgr timeout accordingly
try
{
# Check if the number of occurrences of "path" is 2 - this fixes the Boot Manager screen issue (#2562)
if ((bcdedit | Select-String "path").Count -eq 2)
{
# Set bootmgr timeout to 0
bcdedit /set `{bootmgr`} timeout 0
}
}
catch
{
}
'@
$firstRun | Out-File -FilePath "$env:temp\FirstStartup.ps1" -Force
}

0 comments on commit a45402e

Please sign in to comment.