Hello, dana95
Welcome to the Microsoft community.
Thank you for your feedback. I understand that you are having trouble not receiving the verification code and not being able to access Windows. Here are some troubleshooting options:
- Other users have also reported the same problem that you can't get the verification code, you can try to add the Microsoft Authenticator login.
How to use two-step verification with your Microsoft account - Microsoft Support
Download Microsoft Authenticator - Microsoft Support
- You can try the following to enable the built-in administrator account:
On the lock screen, hold down the Shift key and restart your computer in the bottom right corner of the screen.
Your system will restart with a special boot options menu. From there, select Troubleshoot > Advanced options > Command Prompt.
In the Command Prompt window, type Enter and press Enter. regedit
In the Registry Editor, select HKEY_LOCAL_MACHINE, then go to the File menu and select Load Hive.
Find the drive where the operating system is installed (usually C:) and navigate to Windows\System32\config.
Select the file named SAM and click Open.
In the dialog box that appears, give the file a name (for example, REM_SAM).
Navigate to HKEY_LOCAL_MACHINE\REM_SAM\SAM\Domains\Accounts\Users\000001F4, and then double-click on the string named F. In the table that opens, find the number 11 (first column, eighth row, different for different versions of Windows, 14 for Professional), click to the right of it, press Backspace to delete 11, and then type 10 in their place.
Close the Registry Editor by typing something in the Command Prompt window and restart the computer normally. Exit
If you have successfully activated the built-in administrator, for transferring personal files, you can refer to the following link:
Troubleshoot Problems Signing In to Windows - Microsoft Support
- If the above method doesn't work, it is recommended to reinstall Windows using a USB installation media.
Reinstall or reinstall Windows 11 - Microsoft Community
For file backup, you can refer to the following link:
Recover files when Windows won't start - Microsoft Community
I look forward to your feedback.
Best wishes
Aaron| Microsoft Community Support Specialist