If you're blocked by an error or a password in the Windows Recovery Environment, please use another computer to create a bootable USB drive containing the Windows installation. This USB can then be used to run repair tools on your affected computer.
You will need an empty USB with at least 8GB of space and a working PC.
You can create using the media creation tool, download it on this link(Create a USB device with an installation image): https://www.microsoft.com/software-download/win...
How to Create Windows 11 Bootable USB Installation Media: https://www.elevenforum.com/t/create-windows-11...
On your affected PC:
Insert the USB(Windows 11 Bootable USB Installation Media)
Go to BIOS/UEFI and change to boot from the USB device.
On the installation screen click on "Repair your PC" in the left bottom.
Click on Troubleshoot > Advanced Options > Try all the available options. Thank you.
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it. Thank you.