Perte de mot de passe Windows : la solution!

Il n’y pas si longtemps, j’aurai dit qu’il fallait réinstaller windows en cas de perte du mot de passe pour démarrer.. Hé bien non, il y a beaucoup plus simple et plus rapide!! Il suffit de graver sur un CD un utilitaire (Offline NT Password & Registry Editor) basé sur linux et démarrer la machine à partir de ce CD. Ce tutorial est valable pour Windows NT / 2000 / XP / Vista / Seven.
L’image ISO est disponible sur le site du créateur ici.

EDIT du 12/05/2012 : Le site du créateur étant hors-ligne, je met à disposition la version 110511 ici : cd110511
Il suffit de graver cette image avec un logiciel dédié (comme imageburn disponible en version portable sur Liberkey). Une fois le CD prêt, démarrez votre machine avec le CD (en règle générale, les réglages du BIOS font d’abord démarrer sur le lecteur CD/DVD, si ce n’est pas le cas, modifier l’ordre de démarrage dans le BIOS).

une fois le CD démarré, vous devriez voir ceci :

ISOLINUX 3.51 2007-06-10  Copyright (C) 1994-2007 H. Peter Anvin

  ***************************************************************************
  *                                                                         *
  *  Windows NT/2k/XP/Vista Change Password / Registry Editor / Boot CD     *
  *                                                                         *
  *  (c) 1998-2007 Petter Nordahl-Hagen. Distributed under GNU GPL v2       *
  *                                                                         *
  * DISCLAIMER: THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTIES!          *
  *             THE AUTHOR CAN NOT BE HELD RESPONSIBLE FOR ANY DAMAGE       *
  *             CAUSED BY THE (MIS)USE OF THIS SOFTWARE                     *
  *                                                                         *
  * More info at: http://pogostick.net/~pnh/ntpasswd/                       *
  * Email       : pnh@pogostick.net                                         *
  *                                                                         *
  * CD build date: Sun Sep 23 14:15:35 CEST 2007                            *
  ***************************************************************************

  Press enter to boot, or give linux kernel boot options first if needed.
  Some that I have to use once in a while:
  boot nousb          - to turn off USB if not used and it causes problems
  boot irqpoll        - if some drivers hang with irq problem messages
  boot nodrivers      - skip automatic disk driver loading

  boot:

Valider par entrée.

*************************************************************************
* Windows Registry Edit Utility Floppy / chntpw                         *
* (c) 1997 - 2007 Petter N Hagen - pnh@pogostick.net                    *
* GNU GPL v2 license, see files on CD                                   *
*                                                                       *
* This utility will enable you to change or blank the password of       *
* any user (incl. administrator) on an Windows NT/2k/XP/Vista           *
* WITHOUT knowing the old password.                                     *
* Unlocking locked/disabled accounts also supported.                    *
*                                                                       *
* It also has a registry editor, and there is now support for           *
* adding and deleting keys and values.                                  *
*                                                                       *
* Tested on: NT3.51 & NT4: Workstation, Server, PDC.                    *
*            Win2k Prof & Server to SP4. Cannot change AD.              *
*            XP Home & Prof: up to SP2                                  *
*            Win 2003 Server (cannot change AD passwords)               *
*            Vista 32 and 64 bit                                        *
*                                                                       *
* HINT: If things scroll by too fast, press SHIFT-PGUP/PGDOWN ...       *
*************************************************************************

=========================================================
There are several steps to go through:
- Disk select with optional loading of disk drivers
- PATH select, where are the Windows systems files stored
- File-select, what parts of registry we need
- Then finally the password change or registry edit itself
- If changes were made, write them back to disk

DON'T PANIC! Usually the defaults are OK, just press enter
all the way through the questions

=========================================================
¤ Step ONE: Select disk where the Windows installation is
=========================================================

Disks:
Disk /dev/sda: 42.9 GB, 42949672960 bytes

Candidate Windows partitions found:
1 :        /dev/sda1   40958MB BOOT

Here it has found one disk with one partition

Please select partition by number or
q = quit
d = automatically start disk drivers
m = manually select disk drivers to load
f = fetch additional drivers from floppy / usb
a = show all partitions found
l = show propbable Windows (NTFS) partitions only
Select: [1]

Il faut choisir la partition de démarrage de Windows (généralement celle qui est notée « BOOT »). Dans notre cas, on tape 1 puis entrée.

  =========================================================
  ¤ Step TWO: Select PATH and registry files
  =========================================================
  What is the path to the registry directory? (relative to windows disk)
  [WINDOWS/system32/config] :

Simplement valider une nouvelle fois avec entrée.

 Select which part of registry to load, use predefined choices
  or list the files with space as delimiter
  1 - Password reset [sam system security]
  2 - RecoveryConsole parameters [software]
  q - quit - return to previous
  [1] :

On arrive enfin à la partie intéressante!
Tapez 1 puis entrée pour pouvoir modifier les mots de passe.

======== chntpw Main Interactive Menu ========

Loaded hives:

1 - Edit user data and passwords
2 - Syskey status & change
3 - RecoveryConsole settings
- - -
9 - Registry editor, now with full write support!
q - Quit (you will be asked if there is something to save)

What to do? [1] ->

Tapez de nouveau 1 puis entrée.

===== chntpw Edit User Info & Passwords ====

| RID -|---------- Username ------------| Admin? |- Lock? --|
| 03e8 | admin                          | ADMIN  |          |
| 01f4 | Administrator                  | ADMIN  | dis/lock |
| 03ec | grumf1                         |        |          |
| 03ed | grumf2                         |        |          |
| 03ee | grumf3                         |        |          |
| 01f5 | Guest                          |        | dis/lock |
| 03ea | jalla1                         | ADMIN  | *BLANK*  |
| 03eb | jalla2                         |        | *BLANK*  |
| 03e9 | petro                          | ADMIN  | *BLANK*  |

- - - - User Edit Menu:
1 - Clear (blank) user password
2 - Edit (set new) user password (careful with this on XP or Vista)
3 - Promote user (make user an administrator)
(4 - Unlock and enable user account) [seems unlocked already]
q - Quit editing user, back to user select
Select: [q] > 1

Vous pouvez soit supprimer le mot de passe (1), soit mettre un mot de passe de votre choix (2), soit changer un utilisateur en administrateur (3).
Dans notre cas, on tape 1 puis entrée :

Password cleared!
Select: ! - quit, . - list users, 0x - User with RID (hex)
or simply enter the username to change: [Administrator] !

Vous pouvez maintenant faire des modifications sur un autre utilisateur (dans ce cas, tapez son nom), soit quitter en tapant ! puis valider avec entrée (ce que l’on va faire).

======== chntpw Main Interactive Menu ========

Loaded hives:

1 - Edit user data and passwords
2 - Syskey status & change
3 - RecoveryConsole settings
- - -
9 - Registry editor, now with full write support!
q - Quit (you will be asked if there is something to save)

What to do? [1]

Taper q, puis entrée pour quitter.

=========================================================
¤ Step FOUR: Writing back changes
=========================================================
About to write file(s) back! Do it? [n] :

Tapez Y pour enregistrer les modifications

***** EDIT COMPLETE *****

You can try again if it somehow failed, or you selected wrong
New run? [n] : n
=========================================================

* end of scripts.. returning to the shell..
* Press CTRL-ALT-DEL to reboot now (remove floppy first)
* or do whatever you want from the shell..
* However, if you mount something, remember to umount before reboot
* You may also restart the script procedure with 'sh /scripts/main.sh'

Validez par entrée pour quitter.
C’est terminé!!

Lien : site du créateur

 

VN:F [1.9.17_1161]
Evaluez l'article
Note : 2.0/5
Perte de mot de passe Windows : la solution!, 2.0 out of 5 based on 1 rating
  • Einna/Annie Fileiros
    #1 écrit par Einna/Annie Fileiros Il y a 1 an

    Pas moyen de me connecter. j’étais sure de mon mot de passe mais à chaque fois on me dit qu’il y a erreur. Je ne peux plus mettre de sujet et bien entendu je n’ai pas accès à mon espace qui peut me donner la solution ? einna019@hotmail.fr
    Je ne suis pas experte en informatique.
    Etant handicapée c’est mon seul univers pour m’évader.

    • mat
      #2 écrit par mat Il y a 1 an

      Bonjour Einna,

      Mon article traite des mots de passe pour démarrer windows. Si ton problème de mot de passe concerne autre chose que windows, je ne crains de ne pas pouvoir t’aider…

  • FRED
    #3 écrit par FRED Il y a 1 an

    géniale , je le garde et le met de cote , je testerais ça bientôt , c est pas la première fois que je bloque ce niveau , et vous me donner la solution

    merci beaucoup

    fred

  • mat
    #4 écrit par mat Il y a 1 an

    merci pour le commentaire. Je confirme, ça fonctionne très bien (testé sous XP à plusieurs reprises). Ravi que cela puisse servir :-)

  • Béchu
    #5 écrit par Béchu Il y a 1 an

    Bonjoure sa alére bien ton article j’ai pri des note je vai le tésté plus tare aurevoire.

  • Blanche
    #6 écrit par Blanche Il y a 11 mois

    Mon ordi ne veut pas de la partition notée boot et ne trouve pas windows si je sélectionne l’autre. Pourquoi ?

  • mat
    #7 écrit par mat Il y a 11 mois

    Bonjour, tu peux m’en dire un peu plus (message d’erreur obtenu lorsque tu essaye la partition boot par exemple)?

  • Blanche
    #8 écrit par Blanche Il y a 11 mois

    Quand j’essaye la partition boot, il me dit :
    mount: mounting /dev/ sda2 on /disc failed: Invalid argument
    ERROR: Mount failed
    et il me redemande quelle partition je veux

    Quand j’essaye la deuxième, je passe à la deuxième étape ou il me dit :
    DEBUG path: windows not found
    DEBUG path: winnt not found
    DEBUG path: winnt35 no found
    Si je continue quand même, je passe de la troisième étape à la première

  • mat
    #9 écrit par mat Il y a 11 mois

    euh question bête, ton PC démarre bien ou pas? et quelle version de windows utilises-tu?

    • Blanche
      #10 écrit par Blanche Il y a 11 mois

      Oui, mon PC démarre et j’ai Vista

  • mat
    #11 écrit par mat Il y a 11 mois

    Malheureusement, cela dépasse mes compétences, car là, il s’agit de Linux pour lequel je ne connais pas grand chose. D’après le créateur du problème, il peut y avoir des incompatibilités avec certaines cartes mères ou certains ordinateurs de marque Compaq ou dell. Je t’invite à consulter sa FAQ pour voir si quelque chose peut t’aider…
    Désole de ne pas pouvoir t’en dire plus.

  • Vous pouvez utiliser ces mots-clés HTML : <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <strike> <strong>

    Insérer un lien vers un de vos article parmi les dix derniers.

  • Flux de commentaires pour cet article
  • Mailing list ChezMat

  • Bientôt sur ChezMat

    • Genshiken, version manga
    • Critique HIMYM Saison 7
    • Critique Legend of the seeker saison 2
    • Monter son PC de A à Z
    • Migrer son site wordpress.com, tuto 3
  • Suivez-moi sur Twitter

  • Publicité

Haut de page