author avatar
    Senior Program Developer
 

Summary
In this article, we provide a comprehensive guide on how to reset passwords using the command line with step-by-step tutorials and various alternative methods. We also introduce a user-friendly solution, Renee PassNow, for those who are not familiar with the command line. Say goodbye to password troubles with our tips and tricks!



In today’s tech-savvy world, passwords play a vital role in keeping our digital accounts and information secure. However, there are instances where we may forget or need to reset our passwords, and this can be a daunting task for some. Fortunately, there is a simple solution for resetting passwords using the command line, a powerful tool found in every operating system. In this article, we will explore the step-by-step tutorial on resetting passwords using the command line by replacing Windows program with cmd.exe. So without further ado, let’s dive into the world of command lines and learn how to reset passwords.

Method 1 : Reset Password Command Line by replacing ultiman.exe

Resetting a Windows 10 local admin password using the Command Prompt is an effective solution when you are either signed into the system or unable to sign in. This step-by-step tutorial will guide you through the process, providing instructions for both scenarios.

Case 1: When You're Signed Into Windows 10

If you are already signed into Windows 10, follow these steps to reset the password for the local admin account using Command Prompt:
Step 1: Open Command Prompt as Administrator
Click on the Start menu and type “cmd” to search for the Command Prompt. Right-click on “Command Prompt” and select “Run as administrator” to open Command Prompt with administrative privileges.
Step 2: Verify the Current User’s Privileges
In the Command Prompt window, type the following command to check if the current user has administrator privileges:

whoami /groups | find "S-1-5-32-544"

If the command returns a result, it means that the current user has administrator privileges and can reset passwords.
Step 3: Reset the Password
Type the following command in the Command Prompt window to reset the password for the local admin account:

net user "admin-account-name" "new-password"

Replace “admin-account-name” with the name of your admin account and “new-password” with the desired new password. Press Enter to execute the command and reset the password.

Case 2: When You Cannot Sign Into Windows 10

If you have forgotten the local admin password and cannot log into your computer, follow these steps to reset the password using Command Prompt and a Windows 10 installation disk:
Step 1: Prepare a Windows 10 Installation Disk
If you don’t have a Windows 10 installation disk, create one using another accessible computer and a USB or CD-ROM flash drive. Refer to the Windows official website for instructions on creating a Windows 10 installation media.
In some cases, reinstalling the Windows operating system may be a better option. This can be done by creating a bootable USB drive with the Windows installation media. Users can download the Windows ISO file from the official Microsoft website and use a tool like Rufus to create a bootable USB drive.
If you do not have a Windows Installation media, you may download Windows Installation Creation Tools here:
Windows VersionDownload LinkRequirement
Windows 7https://learn.microsoft.com/lifecycle/products/windows-7PC with a working Internet connection/ a blank USB flash drive or DVD with at least 8 GB of available storage space/ a product key
Windows 8/8.1https://www.microsoft.com/software-download/windows8Same to above
Windows 10https://www.microsoft.com/software-download/windows10Same to above
Windows 11https://www.microsoft.com/software-download/windows11Same to above
Step 2: Boot Your Computer from the Installation Disk
Insert the Windows 10 installation disk into your locked computer and restart it. Press the appropriate key (usually F12 or Esc) to enter the boot menu and select the installation disk as the boot device.
Step 3: Access Command Prompt from the Installation Disk
After booting from the installation disk, select “Repair your computer” and choose the Troubleshooting option. From the Troubleshoot menu, select Command Prompt to open a Command Prompt window.
reset password command prompt
Step 4: Reset the Password
In the Command Prompt window, type the following command to reset the password for the local admin account:

net user "admin-account-name" "new-password"

Replace “admin-account-name” with the desired admin account name and “new-password” with the new password you want. Press Enter to execute the command and reset the password.
Note: Resetting passwords using the Command Prompt requires familiarity with the system and Command Prompt commands. If you are not comfortable with these steps or prefer a simpler method, you can use third-party tools like Renee PassNow to reset your Windows 10 password. Renee PassNow provides a user-friendly interface and simplifies the password reset process.
Always ensure that you have legitimate access to the system and use these methods responsibly and ethically.
Pros:
  • Effective solution for resetting Windows 10 local admin password
  • Can be done when signed into the system or unable to sign in
  • Step-by-step tutorial provided for both scenarios

Cons:

  • Requires familiarity with Command Prompt commands
  • May not be suitable for users who are not comfortable with technical steps

Method 2 : Replacing Stick Key Program sethc.exe for Password Reset

In this chapter, we will explore the process of replacing the Sticky Keys program (sethc.exe) with the Command Prompt (cmd.exe) to reset a local Windows account password. This method can be helpful when you forget your administrator password and want to regain access to your Windows system. We will demonstrate the steps using a Windows 10 installation DVD or Windows repair disk.
sethc.exe sticky program
Step 1: Booting from Windows Installation DVD or Repair Disk
Start by inserting your Windows installation DVD or repair disk into the appropriate drive and restarting your computer. Make sure the boot order is set to prioritize booting from the DVD or disk. Once the installation files load, you’ll see the language setup screen. Press SHIFT + F10 keys simultaneously to launch the Command Prompt.
Step 2: Identifying the Drive Letter for Windows Partition
Use the

dir

command to find the drive letter assigned to your Windows partition. The drive letter may differ if you are using a Live CD or a different disk. Take note of the correct drive letter.
Step 3: Replacing Sticky Keys with Command Prompt
Now, enter the following two commands one by one, pressing Enter after each:

copy c:\windows\system32\sethc.exe c:\windows\system32\sethc.exe.bak

copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

The first command creates a backup of the original sethc.exe file, and the second command replaces it with cmd.exe.
Step 4: Restarting the Computer
Close all open windows and remove the installation DVD or repair disk. Restart your computer.
Step 5: Accessing the Command Prompt
Once you are back at the Windows login screen, press the SHIFT key five times in a row. This will open the Command Prompt in administrator mode.
Step 6: Resetting the Local Windows Account Password
In the Command Prompt window, enter the following command to reset the password for your local Windows account:

net user

Replace <user_name> with the actual username of your account and <new_password> with the desired new password. Press Enter to execute the command and reset the password.
Step 7: Restoring the Original Sticky Keys
After successfully resetting the password, it is important to restore the original sethc.exe file to maintain system integrity. To do this, restart your computer using the Windows installation DVD or repair disk again, go back to the Command Prompt, and enter the following command:

copy /y c:\windows\system32\sethc.exe.bak c:\windows\system32\sethc.exe

Conclusion:
The process of replacing the Sticky Keys program with the Command Prompt provides an alternative method to reset a local Windows account password. By following the above steps, you can regain access to your Windows system when you forget your administrator password. However, it is important to be cautious and take necessary precautions to secure your computer and prevent unauthorized access. Remember to restore the original sethc.exe file after resetting the password. Utilizing additional security measures such as disabling startup repair, enabling BIOS password, or implementing device encryption can further protect your system from potential exploits. Ensure you keep your Windows machine secure to safeguard your data and maintain system integrity.
Pros:
  • Provides an alternative method to reset a local Windows account password
  • Can regain access to Windows system when administrator password is forgotten

Cons:

  • Requires familiarity with Command Prompt commands
  • May not be suitable for users who are not comfortable with technical steps

The Importance of Familiarity with the System for Password Reset

When it comes to resetting passwords using the command line, it is crucial to have a strong understanding of the system environment. This includes being familiar with the operating system, its directory structure, and the various commands and programs that can be used. Without this knowledge, attempting to reset a password through the command line can be challenging and may result in unintended consequences.
Alternatives for Non-Technical Users
While mastering the command line is advantageous, it may not be feasible or practical for all users. Non-technical users, or those who are less familiar with the system, may find it challenging to utilize the command line effectively and safely. In such cases, using specialized tools like Renee PassNow provides a user-friendly and reliable alternative for password reset, without the need for extensive technical knowledge.

User-friendly solution : Using Renee PassNow for Password Reset

In today’s digital era, we are constantly surrounded by a variety of technological devices and platforms, all of which require passwords for security purposes. But what happens if we forget our passwords or are locked out of our accounts? This is where password reset commands come in handy. However, many users are not familiar with the command line interface, which can be a daunting and confusing process. That’s where Renee PassNow comes in as a recommended alternative for those who are not familiar with the command line.
Renee PassNow is a powerful and user-friendly software that allows users to easily reset their passwords without any technical knowledge or experience. It offers a step-by-step guide with clear instructions, making the password reset process simple, quick, and stress-free.
Tips:If your account is Microsoft Account, Renee PassNow will convert this account to Local account. After resetting login password, you need to connect your account to your Microsoft Account again.
To reset your Windows password using Renee PassNow, follow these steps:
Step 1: Download and Install Renee PassNow
Start by downloading Renee PassNow from the official website and install it on a different computer that you can access. You can choose the appropriate version based on your computer’s operating system.
Renee PassNow – Professional Windows System Rescue Tool

Remove Windows Login Password 3 steps for whole password remove process.

Recover the files Recover the deleted files without Windows system.

Transfer the data Transfer the important files of the computer with system.

Fix Windows startup error Fix various Windows startup failures or crashes.

Erase disk Completely erase disk files which will not be restored.

Remove Windows Login Password 3 steps for whole password remove process.

Recover the files Recover the deleted files without Windows system.

Transfer the data Transfer the important files of the computer with system.

Free TrialFree TrialNow 2000 people have downloaded!
Step 2: Create a Bootable USB or CD/DVD
Launch Renee PassNow and insert a USB flash drive or blank CD/DVD into the computer. Select the option to create a bootable media. Follow the on-screen instructions to complete the process.
Create New Windows 10 Password Reset Disk with Renee PassNow
Step 3: Boot the Locked Server from the Bootable Media
Insert the bootable USB or CD/DVD into the locked Windows computer. Restart the computer and enter the BIOS settings by pressing the appropriate key (usually F2 or Delete). Configure the boot order to prioritize the bootable media.
Common Server:
Server TypeEnter boot menu method
DELLPress the F12 key repeatedly before the Dell logo appears on the screen.
HPPress the F9 key multiple times when the HP logo is displayed.
Common Computers:
BIOS NameEnter boot menu method
ASRockDEL or F2
ASUSDEL or F2 for PCs/ DEL or F2 for Motherboards
AcerDEL or F2
DellF12 or F2
ECSDEL
Gigabyte / AorusDEL or F2
Lenovo (Consumer Laptops)F2 or Fn + F2
Lenovo (Desktops)F1
Lenovo (ThinkPads)Enter then F1
MSIDEL
Microsoft Surface TabletsPress and hold Power and Volume Up buttons
Origin PCF2
SamsungF2
ToshibaF2
ZotacDEL
HPEsc/ F9 for `Boot Menu`/ Esc/ F10/ Storage tab/ Boot Order/ Legacy Boot Sources
INTELF10
Boot the target PC with the created password reset USB/CD/DVD.
Step 4: Select password reset function
After successfully booting from the bootable media, Renee PassNow will load. Select “PassNow!” function after booting from the new created Windows password reset disk.
After loading into main interface, please select the “PassNow!” function.
Step 5: Resetting the Password
Choose the user account for which you want to reset the password. Then, click on the “Clear Password” button. Renee PassNow will remove or reset the password for the selected user account.
Select target Windows system in the list
Select target user account in the list
Step 6: Reboot the PC
Once the password is reset, remove the bootable media from the PC and restart the computer. You will now be able to log in to Windows Account without a password.
With these simple steps, you can easily reset your password using Renee PassNow. It also guarantees the safety of your data while resetting your password, as it does not cause any data loss or damage to your files.
The simplicity and user-friendliness of Renee PassNow make it an ideal alternative to using command line interfaces for password reset. Its clear instructions and easy-to-follow steps make it suitable for all levels of users, even those without technical knowledge.

Conclusion

In this comprehensive guide, we have covered the process of resetting passwords using the command line. We started with an introduction to the command line and its importance in password resetting. Then we provided a step-by-step tutorial on how to replace ultiman.exe with cmd.exe for password reset and explained the process of replacing sethc.exe with cmd.exe. It is essential to have a good understanding of the system when using the command line for password reset. For those who are not familiar with the command line, we recommend using Renee PassNow, which offers a simple and safe way to reset passwords. With its user-friendly interface and data safety features, Renee PassNow is a highly recommended alternative for hassle-free password resetting. We hope this guide has provided you with the necessary information and tools to easily reset passwords using the command line.