Windows Server recovers the boot password
1. Use the installation disk to boot, enter the language selection interface, press shitf+F10 (figure 1), open the command prompt interface, and enter the "Windows\ System32" directory (figure 2).
Figure 1
Figure 2
2. Locate the "osk.exe" file in the C:\ Windows\ system32 directory and delete it; (figure 3)
Figure 3
3. Rename "cmd.exe" in the current directory and copy it to "osk.exe". (figure 4) exit the command prompt and close the language selection window (figure 5).
Figure 4
Figure 5
4. Restart the computer, wait for the boot, click the "easy access" button in the lower left corner, check "will not type with the keyboard (screen keyboard)" in the pop-up dialog box, and pop up the command prompt (figure 6). Because the file has been replaced before, what is open now is not the on-screen keyboard, but the command prompt interface.
Figure 6
5. Use the command to add users and passwords: (figure 7)
Net user test 123 / add (new user name is test and password is 123)
Add users to the administrators group
Netlocalgroup administrators test / add
Figure 7
6. After logging in to the system normally, you can change the original password. After changing the password, copy osk.exe from other WindowsServer systems to Windows\ System32, and replace the cmd.exe file with osk.exe.