If your windows pc wont boot, I will show you some command we can use from Windows Recovery to try and fix and repair Windows 11 or Windows 10
dism command using your windows image
dism /image:c:\ /cleanup-image /restorehealth /source:c:\windows
Add this command you yours and change path to your path
/scratchdir:{path}
This command uses the windows image on USB drive we created.
dism /image:c:\ /cleanup-image /restorehealth /source:{path to install.wim or install.esd}
sfc /scannow from windows recovery
sfc /scannow /offbootdir={drive}\ /offwindir={drive}\windows
Important: Make sure you change drive letters to your drive letters
The above is somewhat cryptic. This Youtube video may help.
or this one