Hi Soroush Mousavi
Welcome to Microsoft Community.
Based on your description, I understand that you don't want your PIN to be available and that your Microsoft account was locked for 30 days due to a change in phone number, and I understand very well how you feel!
I will start by offering you a special way you can try to enable the built-in administrator account on your computer by following a step-by-step program I have written to log in with this administrator account first. This account does not require the use of any email or password and does not require an internet connection.
- On the lock screen, press and hold the Shift key while restarting the computer in the lower right corner of the screen.
- The system will then reboot and enter a special boot options menu. Next, select Troubleshooting > Advanced Options > Command Prompt.
- In the Command Prompt window, type regedit and press the Enter key.
- In the Registry Editor, select HKEY_LOCAL_MACHINE, and then select Load Configuration Unit from the File menu.
- Locate the drive where the operating system is located (usually the C drive) and go to this path: Windows\System32\config.
- Select the file with the name SAM and click Open.
- In the pop-up dialog box, name the file (e.g. REM_SAM).
- Locate the directory: HKEY_LOCAL_MACHINE\REM_SAM\SAM\Domains\Accounts\Users\000001F4, and double-click on the string called F. Find the number 11 (column 1, row 8) in the table that opens, click to the right of it, press the Backspace key to delete the 11, and then enter the number 10 in the place where the 11 used to be.
- Type exit in a command prompt window to close the registry editor and restart the computer normally.
- After rebooting, you can log on to the system using the built-in administrator account.
After entering the system in this way, we try to reset Windows Hello.
- Stop the biometric service.
“WIN + R” to open ‘Run’ -> type ‘services.msc’ and open it -> find ‘Windows Biometric Service’ and stop the service.
- Backup the old database
Open Windows File Explorer -> Navigate to “C:\Windows\System32\WinBioDatabase” -> Copy the files in this folder to another place for backup.
- Delete the old database
Delete all “.dat” files from the folder in step 2.
- Restart the biometric service
Same as step 1.
- At this point, you can re-enroll your Windows Hello.
We can also create a new local administrator account after accessing the system in this way to test it and see if we can log in smoothly.
Click “Windows Logo Key” to open the search bar -> Enter “cmd” in the search bar and open it with administrator privileges -> Please enter the following command
net user USERNAME PASSWORD /add
net localgroup administrators USERNAME /add
Please note: USERNAME PASSWORD can be replaced by your desired account name and password, if you don't need a password you can leave out the PASSWORD.
Assuming the above scenario does not get you into the system, please continue to check out the scenarios below.
I will provide you with another complete step-by-step program that I have written myself that will allow you to back up your files via the command prompt in WinRE, then reinstall the system and get in.
Please note: This method will at least ensure that we don't lose our important files!
- Please follow the steps below to enter WinRE:
(1) Press and hold the power button for 10 seconds to turn off your device.
(2) Press the power button again to turn on your device.
(3) Immediately after you see Windows start up (e.g., some devices display the manufacturer's logo on reboot), press and hold the Power button for 10 seconds to turn off your device.
(4) Press the Power button again to turn on your device.
(5) When Windows reboots, press and hold the Power button for 10 seconds to turn off your device.
(6) Press the Power button again to turn on your device.
(7) This time, allow the device to fully boot up.
(8) Select Troubleshooting.
(9) Select “Advanced Options”.
(10) “Command Prompt”.
Please note: Assuming that we are still prompted for a password by the system's own WinRE, we can use WinRE on an external installation media, which is a standalone recovery environment that can be run outside of the system and does not usually ask for a password for our account.
The steps are:
(1) First, create Windows installation media
To create installation media for Windows you can refer to: Create installation media for Windows - Microsoft Support
Please note: Please choose an external storage device that does not hold any data, such as a USB flash drive, removable hard drive, etc.
(2) Connect the installation media to the computer.
(3) Start the computer and set the Windows installation media as the first place in the BIOS.
(4) Save and enter, the computer will enter the Windows installation program
(5) Click Next, and then click “Repair Computer” in the lower left corner.
(6) On the “Choose an option page”, click “Troubleshooting”.
(7) “Advanced Options”
(8) “Command Prompt”
- Complete the backup according to the following steps:
(1) Identify the external storage device
diskpart
(2) Look at the disk volume and find the drive letter of the external storage device (e.g. E: F: etc.)
list volume
(3) Exit diskpart
exit
(4) Backup data
Example:
xcopy C:\path\to\your\data E:\backup\ /E /H /C /I
Please note: C:\path\to\your\data is replaced by the path of the data in your computer, and E:\backup\ is replaced by the destination path of the external storage device (do not delete the last few parameters).
In addition, there are some other ways to backup files, you can refer to: Rescue Files when Windows Won't Start - Microsoft Community
- After making sure the backup is complete, we reinstall the system using external Windows installation media.
You can refer to: Reinstall Windows with the installation media - Microsoft Support (scroll down and find “Clean Installation of Windows using installation media”).
After reinstalling the system, we should be able to access the system normally.
Please note: I personally strongly recommend that you create a local administrator account in case we have a similar situation again.
I sincerely hope that the complete solution that I have personally written will help you! Please feel free to contact me (Photos related to the question would be great!).
I look forward to hearing back from you.
Best Regards
Arthur Sheng | Microsoft Community Support Specialist