Public cloud Windows Server 2008 Password reset

Source: Internet
Author: User

Core idea: Change the on-screen keyboard of the landing interface to CMD, so that starting the on-screen keyboard is equivalent to starting CMD. A command in CMD resets the password.

Steps:

1. Uninstall the Windows System C drive that you want to reset and hang it on a Linux server.

2. Install NTFS-3G on the Linux server so that it can read and write mount NTFS partitions and mount Windows partitions.

3. Change the On-Screen keyboard function OSK.EXE in Windows to CMD.EXE.

4, put the system disk back, start the system after the login to open the Screen keyboard into CMD,

5, change the user password in cmd, and then hang the partition to Linux to restore the on-screen keyboard.


Operation:

1. Uninstall the Windows System C drive that you want to reset and hang it on a Linux server.

A. Locate the server in the admin console and shut it down, then click Uninstall on the right side of the disk by name.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8B/56/wKioL1hKLOOzVlyyAABlgxhAA4g444.png "title=" 2.png " alt= "Wkiol1hkloozvlyyaablgxhaa4g444.png"/>

B. Click on the Cloud Drive to locate the disc and hang it on the Linux server.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8B/59/wKiom1hKJMrwC7SvAAB5I6WBjY4261.png "title=" 3.png " alt= "Wkiom1hkjmrwc7svaab5i6wbjy4261.png"/>


2. Install NTFS-3G on Linux servers so that they can read and write mount NTFS partitions

ntfs-3g:http://www.tuxera.com/community/open-source-ntfs-3g/

Download

The latest stable version is ntfs-3g_ntfsprogs-2016.2.22, released on March 20, 2016. (Click Ntfs-3g_ ntfsprogs-2016.2.22)

After copying to the Linux server, execute the following command to install NTFS-3G.

TAR-ZXVF ntfs-3g_ntfsprogs-2016.2.22.tgz

CD ntfs-3g_ntfsprogs-2016.2.22

./configure

Make

Make install

Note: Not root remember to install with sudo make


3. Change the On-Screen keyboard function OSK.EXE in Windows to CMD.EXE

Mount the Windows partition, leading to the 2nd partition, so for/dev/xvde2. No one is to see if Windows is inside.

mount-t ntfs-3g/dev/xvde2/mnt/hd/ #挂载C盘,/MNT/HD is the directory I built.

cd/mnt/hd/windows/system32 #注意Windows和System32目录首字母大写

mv Osk.exe osk.exe.bak #备份osk. exe, which is the command on the on-screen keyboard

The CP cmd.exe Osk.exe #cmd. exe is copied into Osk.exe so that you can call cmd by tapping on the on-screen keyboard


4, put the system disk back, start the system after the login to open the Screen keyboard into cmd

A. Follow the starting method to hang this cloud drive to the original Windows, do not need to shut down the Linux server, directly uninstall.

B. Back up the system and click Telnet to enter console


650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8B/59/wKiom1hKKmyh43IBAAAJSWedNiU074.png "title=" 5.PNG " alt= "Wkiom1hkkmyh43ibaaajswedniu074.png"/> C. Click on the lower left corner function button, check the on- screen Keyboard , OK to enter cmd

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/5A/wKiom1hKNUKizeNvAADjGha6Z7M279.png "title=" 6.PNG " alt= "Wkiom1hknukizenvaadjgha6z7m279.png"/>


5, change the user password in cmd, and then put the partition into Linux to restore all operations

Input command:NET user Administrator *

Enter a new password.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/56/wKioL1hKK-_xECIoAABpl2DeXEs530.png "style=" float: none; "title=" 7.PNG "alt=" Wkiol1hkk-_xecioaabpl2dexes530.png "/>


Finally, the hard drive is then hung back to restore the Osk.exe file.

This article from "Dance Demon" blog, declined reprint!

Public cloud Windows Server 2008 Password reset

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.