+5 votes
44 views
Repair Startup Windows 11 CMD

in Windows11 by (551k points)
reopened | 44 views

1 Answer

+3 votes
Best answer

1 Repair Windows 11 startup from Advanced Startup
2 Repair Windows 11 startup from Console

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

From the moment we turn on our PC, hundreds of processes occur in the background that allow the operating system to load correctly. They are key processes and if any of them fail we will simply encounter access errors, restarts, crashes and problems. sometimes much more delicate..

 

One of the main components that act on the startup of Windows 11 are the boot configuration data files (BCD – Boot Configuration Data) which allow a store to be created in which the boot applications and configuration settings are established. These applications, these elements are responsible for replacing the Boot.ini file from previous versions of Windows.

 

Mistakes
When we use Windows 11, there are some errors that may be present when starting the system, some of them are:
  • Ntoskrnl.exe is missing
  • Ntdetect.com is missing
  • BOOTMGR is missing or corrupted
  • no bootable device – insert boot disk and press any key
  • NTLDR is missing or corrupted
  • NTFS.SYS is missing

 

 

 

Each of these files is directly related to the Boot Record, this is the system's boot record, it is classified as a critical part of the hard drive file system since it is the first sector of the disk, we can also know it as MBR (Master Boot Record) or as a boot sector, there is the information necessary for Windows to boot, within the MBR elements we find a "boot loader" which has the task of loading the operating system directly from the hard drive ..

 

Features
From BCD it is possible to manage:
  • The alternatives to use to start Windows with winload.exe
  • Each of the boot and boot parameters of the Boot Record volume
  • Options for hosting and launching previous versions of the operating system

 

 

When we encounter any of these errors, it is time to work on system startup repair and TechnoWikis will teach you how to achieve this.

 


1 Repair Windows 11 startup from Advanced Startup

 

Step 1

For this method we will use the CMD console both in advanced mode and from the active session, to start we must have the Windows 11 ISO image which we find for free at the following official link:

 

 Windows 11

 

Step 2

When we have the ISO image we have two options:

 

  • Burn it to a DVD and use your computer's CD/DVD drive (if you have one)
  • Burn the ISO to a USB and manage it as boot media

 

Step 3

We turn on the equipment. When it starts from there we will see the following: There we click on the “Next” button to see this window:

 

 

image

 

Step 4

Here we will click on the line “Repair the equipment”

 

image

 

Step 5

A series of options to use will be displayed. Here we click on “Troubleshoot” and then see the following:

 

 

image

 

Step 6

In this series of options we will click on “Command Prompt” to access the command prompt console in advanced mode

 

image

 

Step 7

, in the console we are going to execute the “diskpart” command to use the disk management tool:

 

image

 

Step 8

First of all, we are going to list the available disk(s):
 list disk 
image

 

Step 9

We select the disk using the command:
 select disk 0 
image

 

Step 10

Now we are going to list the available volumes on that disk with the command:
 list vol 
image

 

Step 11

There we detect the volume on which Windows 11 is installed, to do this we must keep in mind the size of the volume, we select it using the command:
 select volume # 
image

 

Step 12

Once the volume is selected, we are going to assign a letter to this drive using the following syntax:
 assign letter="letter" 
image

 

Step 13

We exit the diskpart utility with the “exit” command:

 

image

 

Step 14

After this, we are going to access the volume using the assigned letter and a colon, then with the “dir” command we list its contents:

 

 

image

 

 

Step 15

It is time to create the boot files, to do this we execute the following syntax:
 bcdboot Drive_letter:\Windows /l “ISO language” /s Drive_letter: /f all 
image

 

Step 16

The parameters we have used are:

 

  • Bcdboot: It is the utility to execute the series of commands
  • Letter:\Windows: is where the Windows directory is located
  • /l: indicates “locale” and is where the regional configuration is indicated
  • /s <volume letter>: is an optional value, this indicates the volume letter of the system partition
  • /f <firmware type>: Specifies the firmware type and accepts values ​​such as UEFI, BIOS, and ALL

 

We can also use some variables like:

 

  • /v: verbose mode is used
  • /m [{OS Loader GUID}] - Combines values ​​from an existing boot entry to a new boot entry
  • /addlast: indicates that the Windows boot manager firmware entry will be added last
  • /p: teaches that the Windows boot manager firmware entry position should remain in the UEFI boot order
  • /C: refers to the fact that the current BCD elements should not be migrated

 

Step 17

 

Step 18

We leave the console with the “exit” command to be in the Windows 11 menu:

 

image

 

Step 19

We click on “Continue” to load the system:

 

image

 

Step 20

The environment is loaded:

 

image

 

Step 21

You will be logged in:

 

image

 

Step 22

Once we log in, we access the Command Prompt console as administrators:

 

image

 

Step 23

We accept UAC permissions:

 

image

 

Step 24

In the terminal, we run “diskpart” to access the utility and list the current disks with the command:
 list disk 
image

 

Step 25

After this, we select the disk:
 sel disk 0 
image

 

Step 26

When selected, we list its volumes:
 list vol 
image

 

Step 27

In this section we find that the entire Windows boot system is correctly configured, we exit diskpart with the “exit” command:

 

 

image

 


2 Repair Windows 11 startup from Console

 

Step 1

For this method we will use BCEDIT, this is a utility to manage Windows boot configuration, to use it, we access the CMD as administrators:

 

image

 

Step 2

We accept permissions:

 

image

 

Step 3

In the console, we execute the “bcdedit” command to access the Windows 11 boot structure:

 

image

 

Step 4

We can export this configuration to have it as a backup, in this case we execute the following:
 bcdedit /export C:\file.txt 
image

 

Step 5

If this file is required to be imported, we execute the following:
 bcdedit /import C:\file.txt 
Step 6

It will also be possible to carry out other actions with BCDEDIT such as:
  • If we want to enable advanced boot options we will use the command:
 bcdedit /set {globalsettings} advancedoptions true 
  • If you want to enable Kernel editing, execute the command:
 bcdedit /set {globalsettings} optionsedit true 
  • To repair Windows 11 boot configuration data, we execute each of these lines:
 bcdedit /store <Boot partition>:\boot\bcd /set {bootmgr} device partition=<boot partition>: bcdedit /store <Boot partition>:\boot\bcd /set {bootmgr} integrityservices enable bcdedit /store <Boot partition >:\boot\bcd /set {<Identifier>} device partition=<Windows partition>: bcdedit /store <Boot partition>:\boot\bcd /set {<Identifier>} integrityservices enable bcdedit /store <Boot partition>: \boot\bcd /set {<identifier>} recoveryenabled Off bcdedit /store <Boot partition>:\boot\bcd /set {<identifier>} osdevice partition=<Windows partition>: bcdedit /store <Boot partition>:\boot \bcd /set {<identifier>} bootstatuspolicy IgnoreAllFailures 
Parameters
Some extra usage parameters are:

 

  • /createstore – Allows you to create a new empty boot configuration data (BCD) store
  • /store: allows us to indicate the store that we will use
  • /copy: allows you to make a copy of a boot entry in the same system store
  • /create: is responsible for creating a new entry in the boot configuration data store (BCD)
  • /delete: deletes an element from an entry that we specify
  • /deletevalue – Allows you to delete a specified item from a boot entry in Windows
  • /set: sets the value of an input option
  • /enum: allows you to list the entries in a store
  • /bootsequence: allows us to specify a unique presentation order which will be used at the next system boot
  • /timeout: allows us to indicate the waiting time in seconds before the default entry is selected

 

 

We see with these methods how to repair the startup in Windows 11..

 


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Feb 20, 2023 in Windows11 by backtothefuture (551k points) | 61 views
+5 votes
1 answer
asked Feb 21, 2023 in Windows11 by backtothefuture (551k points) | 70 views
+3 votes
1 answer
asked Feb 7, 2023 in Windows11 by backtothefuture (551k points) | 58 views
+3 votes
1 answer
asked Feb 7, 2023 in Windows11 by backtothefuture (551k points) | 55 views
+3 votes
1 answer
asked Jul 19, 2023 in Windows11 by backtothefuture (551k points) | 40 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users