[batch] 解決忘記密碼無法登入 windows 問題

解決忘記密碼無法登入windows問題

  • 測試成功環境: Windows 2003, Windows XP
@echo off
echo.
echo 正在刪除系統目前使用的 SAM 檔案及相關註冊表檔案
echo.
del c:\windows\system32\config\sam /f /q >nul
del c:\windows\system32\config\system /f /q >nul
del c:\windows\system32\config\software /f /q >nul
del c:\windows\system32\config\security /f /q >nul
del c:\windows\system32\config\default /f /q >nul
echo 正在複製系統的備份 SAM 檔案及相關註冊表檔案
echo.
copy c:\windows\repair\sam c:\windows\system32\config\ >nul
copy c:\windows\repair\system c:\windows\system32\config\ >nul
copy c:\windows\repair\software c:\windows\system32\config\ >nul
copy c:\windows\repair\security c:\windows\system32\config\ >nul
copy c:\windows\repair\default c:\windows\system32\config\ >nul
echo 成功清除 Windows 所有帳戶及密碼資訊, 現在重新啟動程式即可直接進入 Windows 系統

此種方法提供一種最暴力登入 Windows 的辦法,需要透過F8進入安全模式下或是利用修復主控台的方式執行以上批次檔(batch),但如果該帳號有相關Windows加密資料此種方法會造成加密資料永遠就不回來。

最好還是透過 Offline NT Password & Recovery Editor 方式將該使用者密碼換掉或清空以便進入該帳號作後續處理,本文只是提供另一種思路。

535 comments

  1. Good day! This is my 1st comment here so I just wanted to give a quick shout out and say I
    really enjoy reading through your blog posts. Can you suggest any other blogs/websites/forums that
    cover the same subjects? Appreciate it!

  2. My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on various websites for about a year and am worried about switching
    to another platform. I have heard good things about blogengine.net.
    Is there a way I can import all my wordpress posts into it?
    Any help would be really appreciated!

  3. Do you have a spam issue on this site; I also am a
    blogger, and I was curious about your situation; we have developed some nice procedures and we are looking to exchange
    strategies with other folks, why not shoot me an email if
    interested.

  4. I like the helpful information you provide in your articles.
    I will bookmark your blog and check again here
    frequently. I’m quite sure I will learn many new stuff right here!

    Best of luck for the next!

  5. Greetings from Colorado! I’m bored at work so I decided
    to browse your website on my iphone during lunch break.
    I enjoy the information you present here and can’t wait to
    take a look when I get home. I’m shocked at how fast your blog loaded on my mobile
    .. I’m not even using WIFI, just 3G .. Anyways, fantastic blog!

  6. I am extremely impressed with your writing skills
    as well as with the layout on your weblog. Is this a
    paid theme or did you customize it yourself?
    Either way keep up the nice quality writing, it is rare to see a nice blog like this
    one today.

  7. It’s appropriate time to make a few plans for the
    long run and it is time to be happy. I have read this publish and if I
    could I wish to suggest you some attention-grabbing issues or advice.
    Maybe you could write subsequent articles regarding this
    article. I wish to read even more issues about it!

  8. Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive
    the message home a little bit, but other than that, this
    is wonderful blog. A fantastic read. I’ll definitely be back.

  9. I’m really inspired along with your writing abilities and also with the
    layout in your weblog. Is that this a paid subject or did you modify it yourself?

    Anyway stay up the nice high quality writing, it’s rare to look a
    great weblog like this one today..

  10. Please let me know if you’re looking for a author for your site.
    You have some really great posts and I believe I would be a
    good asset. If you ever want to take some of the load off,
    I’d love to write some articles for your blog in exchange for a link back to
    mine. Please blast me an email if interested.
    Kudos!

  11. Howdy! I understand this is somewhat off-topic but I had
    to ask. Does running a well-established website like yours take a lot
    of work? I’m brand new to writing a blog but I
    do write in my diary everyday. I’d like to start a blog so I can share my own experience and feelings online.
    Please let me know if you have any kind of ideas or tips for brand new aspiring bloggers.

    Appreciate it!

  12. I absolutely love your blog and find most of your post’s to be precisely what I’m looking for.

    can you offer guest writers to write content for yourself?
    I wouldn’t mind writing a post or elaborating on a few of the subjects you write regarding here.
    Again, awesome blog!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

*