User Tools

Site Tools


windows:reset_windows_password_from_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
windows:reset_windows_password_from_linux [2019/12/04 22:46] – removed peterwindows:reset_windows_password_from_linux [2020/07/22 14:53] (current) – old revision restored (2017/04/04 09:53) 92.220.10.100
Line 1: Line 1:
 +====== Windows - Reset windows password from linux ======
 +
 +1.  Put the livecd in the cd/dvd drive and boot your windows machine from the livecd.
 +
 +
 +2.  Once booted, open the terminal and check for tool named "chntpw" If not there, you can install it using:
 +
 +<code bash>
 +sudo apt-get install chntpw
 +</code>
 +
 +
 +3.  After the tool is ready, mount the windows partition. Use "fdisk -lu" to check which partition should be mounted.  To mount /dev/sda1 (assuming your windows partition is on /dev/sda1), use below command:
 +
 +<code bash>
 +sudo mount /dev/sda1 /mnt
 +</code>
 +
 +
 +4.  Find the SAM file on the windows partition.  Usually it is located in Windows/System32/config.  Run the chntpw on the SAM file.
 +
 +<code bash>
 +cd /mnt/Windows/System32/config
 +</code>
 +
 +
 +List all users in the SAM record.
 +
 +<code bash>
 +chntpw -l SAM
 +</code>
 +
 +
 +Interactively edit the user's credentials.
 +
 +<code bash>
 +chntpw -i SAM
 +</code>
 +
 +
 +5.  Follow the wizard of chntpw and clear administrator or any user's password that you want to access.
 +
 +
 +6.  Save changes and restart machine.  You can access the windows without password for administrator and users that you have cleared their password.
 +
 +<WRAP info>
 +Make sure you take out the livecd, otherwise the machine will boot into it instead of windows.
 +</WRAP>
  
windows/reset_windows_password_from_linux.1575499592.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki