{"id":1457,"date":"2012-03-26T14:19:33","date_gmt":"2012-03-26T06:19:33","guid":{"rendered":"http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1457"},"modified":"2012-03-26T14:20:35","modified_gmt":"2012-03-26T06:20:35","slug":"win-7-enablereset-administrator-account","status":"publish","type":"post","link":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1457","title":{"rendered":"Win 7: enable,reset administrator account"},"content":{"rendered":"<p>I&#8217;ve got a case that someone &#8216;s machine running Windows 7 x64 has recently left the Windows domain , but the local built-in administrator account got disabled and he forget about its password anyway .  However, he doesn&#8217;t have any other accounts with administrators rights.<\/p>\n<p>In order to relogon the machine with administrator  account , first create a &#8220;Windows 7 System Repair Disc&#8221;  from any other Win 7 x64 PC by running a command called <b>&#8220;recdisc.exe&#8221;<\/b> . Then boot up the target machine with this disc.<\/p>\n<p> After the boot up , the disc will detect that you have a Windows 7 installation in D: (in my case), and then Select &#8220;Command Prompt&#8221; and type the command <b>&#8220;regedit&#8221;<\/b> . <\/p>\n<p>In the registry editing windows , select &#8220;HKey_Local_Machine&#8221;  and then &#8220;Load Hive&#8221; by selecting &#8220;D:\\Windows\\System32\\config\\SYSTEM&#8221; (It&#8217;s D: drive in my case) , Give a name to the newly loaded hive . Then select &#8220;Setup&#8221; and change value of the following keys : <\/p>\n<p><img src='http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2012\/03\/img_1959.JPG' alt='img_1959.JPG' \/><br \/>\n\u2191 Modify &#8220;SetupType&#8221; to &#8221; 2 &#8220;<\/p>\n<p><img src='http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2012\/03\/img_1960.JPG' alt='img_1960.JPG' \/><br \/>\n\u2191 Modify &#8220;CmdLine&#8221; to &#8220;cmd.exe&#8221;<\/p>\n<p>After making the changes, unload the hive , and reboot into command prompt  :<br \/>\n<img src='http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2012\/03\/img_1962.JPG' alt='img_1962.JPG' \/><\/p>\n<p>Then enable the administrator account :<br \/>\n<b>net use administrator \/active:yes <\/b><\/p>\n<p>Reset the administrator account with new password :<br \/>\n<b>net use administrator [NEW PASSWORD] <\/b><\/p>\n<p>Now you can type &#8220;exit&#8221; to quit and go back to the logon screen . You may now re-login as &#8220;administrator&#8221; with the new password .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a case that someone &#8216;s machine running Windows 7 x64 has recently left the Windows domain , but the local built-in administrator account got disabled and he forget about its password anyway&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1458,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1457","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1457"}],"version-history":[{"count":0,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1458"}],"wp:attachment":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}