How to handle forgotten passwords in Windows Server 2008 R2

How to handle forgotten passwords in Windows Server 2008 R2

What to do if you forget Windows Server 2008R2

Sometimes, we forget the server password for various reasons, such as too many servers, too many servers, or being hacked. At this time, we want to log in, but we find that we have no way to do it. In fact, to avoid this problem, we can make a password reset disk, but this is not the focus of our discussion this time. We are now discussing how to change the password in the event of forgetting.

The first method: through the system disk

The steps are cumbersome and require computer knowledge. At least you need to know how to add an administrator account under cmd, which is of course the basics.

Let’s look at a picture

1

Does it look familiar? Let's pay attention to the circle in the lower left corner. Let's click it and take a look. Pay attention to the "On-Screen Keyboard" in the figure below. There is a file called osk.exe in our system, which is located under SYSTEM32. This time we will try it.

2

First, we put the 08R2 CD into the machine, then restart and boot from the CD-ROM drive. After we select the language in the figure below, click Next. Don't worry, we will not reinstall the system.

3

Here, we click "Repair Computer", note, do not click Install

4

The same system recovery options appear. Here we select the system and click next.

5

Here we just click "Command Prompt"

6

As shown below, in the first step, we backed up osk.exe and put it in D:\. Since my system has that 100M partition, my system area here is D:\

In the second step, we delete osk.exe

In the third step, we copy cmd.exe to system32 and re-command it as osk.exe

quit

7

Here we choose Restart

8

In the picture below, we have restarted the server. Click the circle in the lower left corner.

9

Check the "On-Screen Keyboard" checkbox and click OK.

11

Then the following screen will appear. Since we have replaced the real osk with cmd.exe, the cmd interface will appear.

22

Here we can directly change the password to what we want, as shown below

33

We exit cmd, log in to the server again, and use the password we just changed

44

Perfect success

The second method: by burning a disc

Something terrible happened at work today. Someone changed the server password, and when I asked him about it, he said he forgot it. Oh! My God! So I checked it online and tested it again, and it succeeded at once. I can only say that there are many experts on the Internet. I made a record below to share with my colleagues.

First, make a bootable USB disk. There are many tools for making it on the Internet, such as Dabaicai and Laomaotao. You can just find one. After the USB disk is made, use it to start the server, enter the menu, and select item 9.

Select option 1 again.

If you choose 1 or 2, the search speed may be very slow.

Once you find it, just press Enter.

Select the account whose password you want to clear.

Don't select anything, just press Y to save and restart the system.

The familiar desktop appears in front of you again.

You may also be interested in:
  • How to create a user and set a password using the Windows Server 2008 R2 command line
  • How to solve the problem of forgetting the administrator password in Win2008 R2
  • How to solve the problem of forgetting the administrator password in Windows Server 2008 R2

<<:  How to allow all hosts to access mysql

>>:  Vue simple implementation of turntable lottery

Recommend

Teach you a trick to achieve text comparison in Linux

Preface In the process of writing code, we will i...

Detailed explanation of mysql basic operation statement commands

1. Connect to MySQL Format: mysql -h host address...

Several ways to generate unique IDs in JavaScript

Possible solutions 1. Math.random generates rando...

Details of 7 kinds of component communication in Vue3

Table of contents 1. Vue3 component communication...

A brief discussion on macrotasks and microtasks in js

Table of contents 1. About JavaScript 2. JavaScri...

Detailed explanation of HTML page header code example

Knowledge point 1: Set the base URL of the web pa...

JavaScript to make the picture move with the mouse

This article shares the specific code of JavaScri...

jQuery realizes the picture following effect

This article shares the specific code of jQuery t...

How to use JavaScript to determine several common browsers through userAgent

Preface Usually when making h5 pages, you need to...

MySQL 8.0.21 installation and configuration method graphic tutorial

Record the installation and configuration method ...

Thoroughly understand JavaScript prototype and prototype chain

Table of contents Preface Laying the foundation p...