Windows Server R2 Solution After forgetting the administrator password

Source: Internet
Author: User
Tags administrator password ntfs permissions

This article was reproduced from: http://liulike.blog.51cto.com/1355103/295340

In daily work, the saddest thing for a network administrator is to forget the local Administrator account password without an alternate administrator account and password recovery disk.
In the early days of the system, this kind of thing can be solved by using many Windows PE CDs in China at present. However, for Windows Server R2, the simple operation is temporarily unable to resolve the password problem.
However, you can add a local administrator account or modify the Administrator account password by using the command prompt line in the case of bypassing the login by replacing the file and using the workaround method.
How to do this:
One, use the Windows Server R2 installation CD to boot the computer. After the installation image is loaded, enter the language selection screen, at this point, press "SHIFT+F10", open the command prompt interface, enter the partition of the Windows directory (if Windows is installed by default, and use the "system reserved" partition, or D-drive), and set to "windows\ System32 "directory (1).

Figure 1
Second, locate the "Osk.exe" file in the directory and delete it (2).

Figure 2
Third, copy the "cmd.exe" rename under the current directory to "Osk.exe" (3).

Figure 3
Restart the computer, wait for the boot to complete, click on the bottom left corner of the "Easy access" button, in the Pop-up dialog box, tick "Do not use the keyboard type (on-screen Keyboard)", and click "OK" (4).

Figure 4
Five, because before the replacement of the file, so will now open not on-screen keyboard, but the cmd command prompt interface (5).

Figure 5
Vi. Use the Net user command to modify the password for the local Administrator account (6).

Figure 6
Note: If you are unsure of the administrator account name, you can create a new user here and add it to the local Administrators group by following these commands:
NET users Adminuser [email protected]/add
net localgroup Administrators Adminuser/add
Use the local admin account and the modified password for normal login (7).

Figure 7
Eight, the ability to log in successfully, proof of password changes effective (8).

Figure 8
When you are finished, on the computer from other Windows Server R2, locate Osk.exe, copy it to the current computer, and replace the file with the Cmd.exe modified to restore it.
Note: The normal osk.exe can only be deleted by default and cannot be copied, so copying Osk.exe must first modify its NTFS permissions.
Finally, as time goes by, Microsoft will fix this type of local administrative password modification in the form of an upgrade patch, so it is still advisable to create an alternate administrator account or use a password recovery disk to perform the operation.

Windows Server R2 Solution After forgetting the administrator password

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.