Delete Windows password - bypass password lock at Windows 10

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

chntpw, the command line tool, has a wide range of configuration options under Linux for manipulating the SAM (Security Account Manager / user management) of a Windows system.[1] Those who did not create a password reset disk, do not have any opportunities to delete the account password or bypass the password lock. This article shows how to install and use this tool under Ubuntu or Debian as well as Red Hat Enterprise Linux and CentOS.

The password entry is incorrect.

Important information: Be sure to create a backup beforehand and then change the entries in the user administration. If your Windows 10 displaces your system to hibernation mode during shut down, the hard drive can be mounted in read-only mode with a Linux-based operating system.[2] In this case, the solution is to shut down the complete Windows 10 system. For this, click and hold the Shift-key on the welcome screen and click on "shut down".[3]


Short overview

The following work steps are made step by step:

  1. Live Linux is booted
  2. The Windows partition is integrated
  3. The editing of the user administration is performed by Windows with the chntpw tool
  4. The Windows partition is taken down again and Windows is started with modified settings

Compatibility: This procedure functions under Windows NT, XP, Vista, 7, 8, 2003/2008 Server, 10 Professional

Preparations

First, download a Linux-based operating system from chntpw, for example Ubuntu Desktop 16.04, and create a USB stick.

Select the option "try Ubuntu" in the boot menu at startup to load Live Linux into the working memory.

After this, an active network connection must be set up.

Important:The universe repository must be activated in the settings "Applications & Updates",

so that the tool can be installed successfully.

Installation of chntpw

Installation of chntpw

To use chntpw , the package manager must be used to perform the installation from the repositories.

  • Ubuntu / Debian based systems: $ sudo apt install chntpw
  • RHEL / CentOS: # yum install chntpw

Usage of chntpw

The tool offers a lot of opportunities to manipulate/configure the SAM user administration of Windows (here in the example: Windows 10):

  • display of all reported users on the system
  • LevelUp user (grant users administrator rights, for example)
  • delete passwords
  • determine password validity
  • create users in an assigned group
  • delete users in assigned groups

Delete Windows password

The following procedure enables to delete the password of a certain user with chntpw:

  1. First, the Windows partition is mounted under Linux
  2. After this, switch to this directory:
    cd (mountpoint)/Windows/System32/config
  3. Start chntpw in the terminal with root-rights and further parameters.
    • Call of all reported/listed Windows accounts:
    • # chntpw -l SAM
  4. Delete the password of rseverin user:
    • # chntpw -u rseverin SAM
    • Delete password with 1
    • Exit editor and safe with q and y
  5. As the editing of the user administration has been completed, the Windows partition must be unmounted again.
  6. Now, Windows 10 can be started successfully without password prompt.

The following screenshots display the user output through chntpw as well as the processing of the user as described in the instructions above:

Both screenshots show that the restart has been performed and the password has been deleted:

References


Author: Wilfried Seifert

Wilfried Seifert, working in the Systems Engineering department at Thomas-Krenn, is responsible for system/prototype development in his work area. LPIC 3 certified, deals with construction / programming of embedded / GPIO systems; in his spare time he likes to repair old home computers, attends Linux conferences or is on the road with his bike (MTB) for sporting compensation.


Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

LoRaWAN Troubleshooting FAQ
Ps and pstree
Setting of CPU Governor under Linux