{"id":2215,"date":"2010-07-28T22:27:15","date_gmt":"2010-07-29T02:27:15","guid":{"rendered":"http:\/\/www.psychocats.net\/ubuntucat\/?p=2215"},"modified":"2010-07-29T14:55:13","modified_gmt":"2010-07-29T18:55:13","slug":"resetwindowspassword","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/resetwindowspassword\/","title":{"rendered":"How to reset a Windows password with Ubuntu"},"content":{"rendered":"<p>If you have forgotten your administrator password for Windows, you can use a <a href=\"http:\/\/www.ubuntu.com\">Ubuntu Linux<\/a> live CD or live USB to reset the password. This tutorial will show you how to do that, step by step. <\/p>\n<p> There are many ways to <a href=\"http:\/\/www.psychocats.net\/ubuntu\/getting\">get Ubuntu Linux<\/a>. You can find more details about that <a href=\"http:\/\/www.psychocats.net\/ubuntu\/getting\">here<\/a>. <\/p>\n<p>If you run into any problems or have any questions, the folks at <a href=\"http:\/\/www.ubuntuforums.org\">the Ubuntu Forums<\/a> are very helpful and friendly. <br \/><b>I will <u>not<\/u> be answering any support questions posted as comments here<\/b>. <\/p>\n<p><h2>Step 1: Boot up Ubuntu<\/h2>\n<p> With the Ubuntu CD in your optical drive or with the Ubuntu USB plugged into your computer, make sure your <a href=\"http:\/\/en.wikipedia.org\/wiki\/BIOS\">BIOS<\/a> is set to boot from CD or USB before your hard drive. You can usually enter your BIOS settings by pressing F1, F2, F9, F10, F12, Esc, or Del during bootup, depending on the kind of computer you have. <\/p>\n<p> <a href=\"http:\/\/www.psychocats.net\/ubuntu\/images\/installinglucid02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/ubuntu\/images\/installinglucidthumb02.png\" border=\"0\" width=\"399\" height=\"296\"><\/a><br \/> After Ubuntu boots up, you&#8217;ll be asked if you want to try Ubuntu or install it. You definitely want to just <b>try<\/b> it at this point. <\/p>\n<h2>Step 2: Install the password reset software<\/h2>\n<p> <a href=\"http:\/\/www.psychocats.net\/ubuntu\/installingsoftware\">Installing software on Ubuntu<\/a> is a bit different from installing software on Windows. Instead of going to a website to download setup files, you just tell the software package manager what you want installed, and it fetches it for you off some servers. It&#8217;s a lot like the iTunes App Store or Android Market. <\/p>\n<p> This does assume that you have a working internet connection (wired preferred, but wireless can work, too). If, for some reason, your internet connection isn&#8217;t working on the computer you want to reset the password for, you can also download <a href=\"http:\/\/mirrors.kernel.org\/ubuntu\/pool\/universe\/c\/chntpw\/chntpw_0.99.5-0+nmu1_i386.deb\">the <i>chntpw<\/i> .deb<\/a> using another computer, transfer it over via USB, and then <a href=\"http:\/\/www.psychocats.net\/ubuntu\/installingsoftware#gdebi\">double-click it to install it<\/a>. <\/p>\n<p> <a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb20.png\" width=\"289\" height=\"300\" border=\"0\"><\/a><br \/> First we want to make sure we have the proper software sources enabled to install <i>chntpw<\/i>. <\/p>\n<p>Go to <b>System<\/b> > <b>Administration<\/b> > <b>Software Sources<\/b> <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword21.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb21.png\" width=\"376\" height=\"358\" border=\"0\"><\/a><br \/> Make sure both the <b>Universe<\/b> and <b>Multiverse<\/b> repositories are checked (or &#8220;ticked,&#8221; if you&#8217;re not American). Click <b>Close<\/b> and then, when prompted, click <b>Reload<\/b>. <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword22.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb22.png\" width=\"378\" height=\"358\" border=\"0\"><\/a><br \/>Wait for the information about available software to reload. <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb23.png\" width=\"288\" height=\"350\" border=\"0\"><\/a><br \/> Go to <b>System<\/b> > <b>Administration<\/b> > <b>Synaptic Package Manager<\/b><\/p>\n<p>  (<i>Note: to those of you who have installed software in Ubuntu before, you actually do&mdash;at least as of Ubuntu 10.04&mdash;have to go to Synaptic to install<\/i> chntpw. <i>You can&#8217;t install it through Ubuntu Software Center<\/i>). <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword24.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb24.png\" width=\"393\" height=\"194\" border=\"0\"><\/a><br \/> Press <b>Control-F<\/b> or click on the <b>Search<\/b> button to get the search dialogue up. Then search for <b>chntpw<\/b>.<\/p>\n<p> (<i>Note: you may be tempted to type<\/i> chntpw <i>into the search filter but it won&#8217;t show up there, since Synaptic hasn&#8217;t had time to rebuild the search index for quick filtering.<\/i>)<\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb25.png\" width=\"377\" height=\"412\" border=\"0\"><\/a><br \/>Once <i>chntpw<\/i> pops up in the search results, right-click it and select <b>Mark for Installation<\/b>.<\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword26.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb26.png\" width=\"468\" height=\"374\" border=\"0\"><\/a><br \/> Click <b>Apply<\/b>, and then, when prompted, click <b>Apply<\/b> again.<\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword27.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb27.png\" width=\"400\" height=\"241\" border=\"0\"><\/a><br \/> Wait for the Synaptic to download and install <i>chntpw<\/i>. <\/p>\n<h2>Step 3: Mount your Windows drive<\/h2>\n<p> In order for you to reset your Windows password, you have to make the Ubuntu live session know that your Windows drive is available for use. This process is called &#8220;mounting.&#8221; <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword28.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb28.png\" width=\"165\" height=\"245\" border=\"0\"><\/a><br \/>To mount Windows, just click on <b>Places<\/b> and then select your drive. It will be listed by the size of the drive (in this example, 80 GB).<\/p>\n<h2>Step 4: Reset your password<\/h2>\n<p> <i>chntpw<\/i> is a terminal-based (not point-and-click) application, so to use it, we&#8217;ll have to open up a command-line terminal. Don&#8217;t be intimidated. I&#8217;ll walk you through the process. <\/p>\n<p> <a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword29.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb29.png\" width=\"337\" height=\"265\" border=\"0\"><\/a><br \/> To open the terminal, go to <b>Applications<\/b> > <b>Accessories<\/b> > <b>Terminal<\/b> <\/p>\n<p>I&#8217;m going to be offering a lot of explanation for those who aren&#8217;t experienced with the terminal and commands, but if you want to just skip over all that stuff, feel free to just pay attention to the terminal commands and ignore the explanations. <\/p>\n<div class=\"terminal\">cd \/media\/493D9CB55373C3DD\/Windows\/System32\/config\/<\/div>\n<p> First, you&#8217;re going to <i>cd<\/i> (change directories) to the right Windows directory.<\/p>\n<p> Start typing <i>cd \/media\/<\/i> and then hit the <b>Tab<\/b> key, and it&#8217;ll autocomplete with the address of your mounted Windows drive. <br \/> Then type <i>W<\/i> and hit <b>Tab<\/b> again to get to either <i>Windows<\/i> (Windows 7) or <i>WINDOWS<\/i> (Windows XP). Yes, the terminal is case-sensitive, so upper- and lower-case matters! <br \/> Type <i>S<\/i> or <i>s<\/i> and hit <b>Tab<\/b> again to get <i>System32<\/i> or <i>system32<\/i> (again depending on whether it&#8217;s Windows 7 or Windows XP&mdash;I forget which it is for Windows Vista). <br \/> And do the same for <i>config<\/i>. <\/p>\n<p> <a href=\"http:\/\/en.wikipedia.org\/wiki\/Command_line_completion\">Tab completion<\/a> makes things a lot simpler, so you don&#8217;t have to type every single word out. It also avoids the whole typo issue, in case you aren&#8217;t a good typist.<\/p>\n<p> Once you&#8217;ve gotten to <i>cd \/media\/<\/i>name-of-your-windows-drive<i>\/Windows\/System32\/config<\/i> or <i>cd \/media\/<\/i>name-of-your-windows-drive<i>\/WINDOWS\/system32\/config<\/i>, hit <b>Enter<\/b>. <\/p>\n<div class=\"terminal\">sudo chntpw -u <i>username<\/i> SAM<\/div>\n<p> You should then type in <i>sudo chntpw -u <\/i>username<i> SAM<\/i>, where <i>username<\/i> is your actual username. For example, if your username is <i>susan<\/i>, it should be <i>sudo chntpw -u susan SAM<\/i> <\/p>\n<p> After you type that in, hit <b>Enter<\/b>, and you&#8217;ll see a whole bunch of terminal output, most of which you can ignore: <\/p>\n<div class=\"terminal\">chntpw version 0.99.5 070923 (decade), (c) Petter N Hagen<br \/>\nHive <SAM> name (from header): <\\SystemRoot\\System32\\Config\\SAM><br \/>\nROOT KEY at offset: 0x001020 * Subkey indexing type is: 666c <lf><br \/>\nPage at 0x7000 is not &#8216;hbin&#8217;, assuming file contains garbage at end<br \/>\nFile size 262144 [40000] bytes, containing 6 pages (+ 1 headerpage)<br \/>\nUsed for data: 260\/20240 blocks\/bytes, unused: 9\/4144 blocks\/bytes.<\/p>\n<p>* SAM policy limits:<br \/>\nFailed logins before lockout is: 10<br \/>\nMinimum password length        : 4<br \/>\nPassword history count         : 4<br \/>\n| RID -|&#8212;&#8212;&#8212;- Username &#8212;&#8212;&#8212;&#8212;| Admin? |- Lock? &#8211;|<br \/>\n| 01f4 | Administrator                  | ADMIN  | dis\/lock  |<br \/>\n| 01f5 | Guest                          |        | dis\/lock |<br \/>\n| 03e8 | susan                       | ADMIN  |          |<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;> SYSKEY CHECK <-----------------------\nSYSTEM   SecureBoot            : -1 -> Not Set (not installed, good!)<br \/>\nSAM      Account\\F             : 0 -> off<br \/>\nSECURITY PolSecretEncryptionKey: -1 -> Not Set (OK if this is NT4)<br \/>\nSyskey not installed!<\/p>\n<p>RID     : 1000 [03e8]<br \/>\nUsername: susan<br \/>\nfullname:<br \/>\ncomment :<br \/>\nhomedir : <\/p>\n<p>User is member of 1 groups:<br \/>\n00000220 = Administrators (which has 4 members)<\/p>\n<p>Account bits: 0x0214 =<br \/>\n[ ] Disabled        | [ ] Homedir req.    | [X] Passwd not req. |<br \/>\n[ ] Temp. duplicate | [X] Normal account  | [ ] NMS account     |<br \/>\n[ ] Domain trust ac | [ ] Wks trust act.  | [ ] Srv trust act   |<br \/>\n[X] Pwd don&#8217;t expir | [ ] Auto lockout    | [ ] (unknown 0x08)  |<br \/>\n[ ] (unknown 0x10)  | [ ] (unknown 0x20)  | [ ] (unknown 0x40)  | <\/p>\n<p>Failed login count: 0, while max tries is: 10<br \/>\nTotal  login count: 100<\/p><\/div>\n<p> This part is important, though: <\/p>\n<div class=\"terminal\">\n&#8211; &#8211; &#8211; &#8211; User Edit Menu:<br \/>\n 1 &#8211; Clear (blank) user password<br \/>\n 2 &#8211; Edit (set new) user password (careful with this on XP or Vista)<br \/>\n 3 &#8211; Promote user (make user an administrator)<br \/>\n(4 &#8211; Unlock and enable user account) [seems unlocked already]<br \/>\n q &#8211; Quit editing user, back to user select<br \/>\nSelect: [q] ><\/div>\n<p> I would highly recommend typing <i>1<\/i> to blank the password instead of editing the password. After you type that, hit <b>Enter<\/b>, and you should see <\/p>\n<div class=\"terminal\">\nPassword cleared!<\/p>\n<p>Hives that have changed:<br \/>\n #  Name<br \/>\n 0  <SAM><br \/>\nWrite hive files? (y\/n) [n] :<\/div>\n<p> Type <i>y<\/i> and hit <b>Enter<\/b> to confirm the change. Once you see <\/p>\n<div class=\"terminal\"> 0  <SAM> &#8211; OK<\/div>\n<p> then you&#8217;re done. <\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspassword30.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/wpimages\/resetwindowspasswordthumb30.png\" width=\"129\" height=\"136\" border=\"0\"><\/a><br \/> Now you can reboot, and you can log into your admin account with a blank password. Once you&#8217;re logged in, you can go to the Control Panel to change your password to something else&mdash;something you can remember. <\/p>\n<p> If you&#8217;re curious, you can see <a href=\"http:\/\/www.psychocats.net\/ubuntucat\/resetwindowspasswordold\">an older version of this page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have forgotten your administrator password for Windows, you can use a Ubuntu Linux live CD or live USB to reset the password. This tutorial will show you how to do that, step by step. There are many ways to get Ubuntu Linux. You can find more details about that here. If you run&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/resetwindowspassword\/\">Continue reading <span class=\"screen-reader-text\">How to reset a Windows password with Ubuntu<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[766,765,919,921],"class_list":["post-2215","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-chntpw","tag-reset-password","tag-ubuntu","tag-windows","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/comments?post=2215"}],"version-history":[{"count":34,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2215\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2215\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=2215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=2215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=2215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}