Can I Set Another OS as Default EFI after Rebooting a Windows PC?

Abstract: Use bcdedit to change the default EFI boot entry for a specific OS after rebooting a Windows PC.

Created: 2026-08-08 by

Yes, you can change the default EFI boot entry after rebooting a Windows PC by using the bcdedit command-line tool. This utility allows you to modify the Boot Configuration Data store, enabling you to set any installed operating system as the primary choice for future startups without needing third-party bootloader managers.

Accessing the Command Prompt with Administrative Privileges

The foundation of this task is gaining access to the correct system tools. The bcdedit command requires elevated permissions because it modifies critical boot files located on the EFI System Partition. If you attempt to run these commands from a standard user account, the system will reject the request due to insufficient privileges. To begin, press the Windows Key and type cmd. In the search results, right-click on Command Prompt and select Run as administrator. A User Account Control (UAC) prompt will appear; click Yes to proceed. Alternatively, you can open the Start menu, scroll down to PowerShell, right-click it, and choose Run as administrator. Both interfaces provide the necessary environment to execute boot management commands. Once the black window or terminal appears, verify that you have administrative rights by typing whoami /groups and checking for the S-1-5-32-544 identifier, which represents the Administrators group. This step ensures that subsequent commands will not fail silently or return access denied errors.

Identifying the Target Operating System Entry

Before changing the default, you must identify the specific unique identifier (UUID) associated with the operating system you wish to prioritize. The Boot Configuration Data (BCD) stores multiple entries, each distinguished by a long hexadecimal string. Listing these entries allows you to see the current default and locate your target OS. Type the following command into your elevated terminal:
bcdedit /enum
This command outputs a comprehensive list of all boot loaders currently recognized by the firmware. Look for the section labeled Windows Boot Loader or similar entries corresponding to Linux distributions if you are in a dual-boot scenario. Each entry has a identifier field at the top, typically formatted like {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}. Note the identifier of the OS you want to make default. Do not confuse this with the device or osdevice paths, which point to partitions rather than the entry itself. If you have multiple versions of Windows installed, such as separate installations on different drives, they will appear as distinct entries. Ensure you select the correct one by cross-referencing the description field, which usually contains the name of the operating system (e.g., "Windows 10" or "Ubuntu").

Setting the New Default Boot Entry

With the correct identifier in hand, you can now instruct the BCD store to use that entry as the default. This overrides the previous default, which might have been Windows again after a failed boot or manual selection. Use the following syntax, replacing the placeholder with the actual UUID you noted earlier:
bcdedit /default {your-identifier-here}
For example, if your identifier is {a1b2c3d4-e5f6-7890-abcd-ef1234567890}, the command would be:
bcdedit /default {a1b2c3d4-e5f6-7890-abcd-ef1234567890}
Upon successful execution, the command line will return The operation completed successfully. It is crucial to include the curly braces around the identifier. Omitting them is a common syntax error that leads to failure. Also, ensure there is no trailing whitespace inside the braces. After running this command, you can verify the change by running bcdedit /enum again. Look for the Default field near the top of the output. It should now display the identifier you just set. This confirms that the next time the computer restarts, the firmware will automatically load the specified operating system.

Managing Timeout and Display Settings

Changing the default does not always mean the other OS boots instantly. By default, Windows may still display a boot menu for a few seconds if it detects ambiguity or if the timeout is configured to allow user intervention. You can adjust how long this menu is displayed. To set the boot manager to show the menu for only three seconds, use:
bcdedit /timeout 3
If you prefer the system to boot immediately without showing the menu at all, you can set the timeout to zero:
bcdedit /timeout 0
However, setting it to zero carries a risk. If the default entry fails to load, you may lose visual feedback on why the boot process halted. A short timeout of one or two seconds is often a safer balance between speed and diagnostic visibility. For more detailed configuration, you can review how other systems handle partition transfers in our guide on How to Transfer Boot Partitions After Installing Windows 10 and 11 to Different Drives.

Reverting Changes if Necessary

If you made an error or wish to restore the original behavior, you can revert the default back to the first available Windows installation. Often, the original Windows bootloader is assigned the identifier {bootmgr} or a specific default GUID provided by the installer. To reset the default to the generic Windows Boot Manager, you can try:
bcdedit /default {bootmgr}
If this does not work, you may need to identify the original Windows entry again using bcdedit /enum and apply its identifier. In cases where the BCD store is corrupted or entries are missing, regenerating the boot files might be necessary. For complex scenarios involving broken links after hardware changes, refer to Recovering Windows 10 EFI Bootloader after Installing Linux for advanced recovery techniques.

Frequently Asked Questions

What happens if I delete the wrong identifier?

You can accidentally remove a valid boot entry by using the bcdedit /delete command with the wrong ID. To prevent this, never delete an entry unless you are certain it is redundant. Always keep a backup of your BCD store before making destructive changes.

Can I change the default OS from within the Windows GUI?

No, Windows does not provide a native graphical interface to change the EFI default boot order directly. You must use the Command Prompt or PowerShell with administrative privileges. Third-party tools exist, but they essentially run the same bcdedit commands under the hood.

Why does my computer still show the boot menu after changing the default?

This occurs if the /timeout value is greater than zero. Even with a new default, the boot manager waits for the specified duration to allow manual selection. Adjust the timeout to zero if you want an immediate boot, but be aware of the potential loss of diagnostic information during startup failures.

Is it safe to edit BCD entries on a UEFI system?

Yes, editing BCD entries is safe and supported on UEFI systems. The BCD store is the modern replacement for the older boot.ini file used in BIOS/MBR systems. However, incorrect edits can render an OS unbootable, so always verify identifiers carefully before applying changes.

How do I fix a boot loop after changing the default?

If your system enters a boot loop, it likely means the default entry points to a corrupted or missing partition. Boot into a Windows Recovery Environment using installation media, open Command Prompt, and run bootrec /rebuildbcd to scan for existing installations and rebuild the store correctly.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More