SAMUNLOCK(8)

πŸ’… SAMUNLOCK β€” the manual, bestie edition ✨

okay so this is samunlock(8), part of the System Manager's Manual, and it's genuinely one of the most useful little gremlins in the toolkit. buckle up πŸŽ€


🌸 NAME 🌸

samunlock β€” unlock users in the SAM user database πŸ”“


✨ SYNOPSIS ✨

samunlock [options] -uuser <samfile>

πŸ’– DESCRIPTION πŸ’–

This manual page documents briefly the samunlock command. Yes, briefly. It's a whole vibe, not a whole novel πŸ“–

samunlock is a non-interactive command line utility that can unlock a user and/or the user's account bits from the SAM user database file of a Microsoft Windows system β€” and when we say Windows we mean Windows NT, 2000, XP, Vista, 7, 8.1, etc. etc. the whole family reunion πŸͺŸβœ¨

That file is usually located at \WINDOWS\system32\config\SAM on the file system of a Microsoft Windows Operating System. yes. that exact path. don't @ me πŸ’…

On success, the program does not output any information and the exit code is 0. silent. mysterious. iconic. 🀫

πŸ‘‘ OPTIONS πŸ‘‘

  • -h β€” show a summary of options. the classic "help me help you" move πŸ†˜
  • -U β€” unlock the user. this is the main character option fr fr πŸ”“πŸ‘‘
  • -a β€” unlock all the users. if you use this one, there is no need to specify the next option. skip it, bestie, you don't need it 🫢
  • -u <user> β€” the user to unlock. the user value can be provided as a username, or as a RID number in hexadecimal (if the username is preceded with '0x'). Usernames including international characters will probably not work 😭
  • -l β€” lists the users in the SAM database. window shopping, but for accounts πŸ›οΈ
  • -H β€” output human readable output. by default the program prints a parsable table unless this option is used. so it's table mode vs. human mode, pick your fighter πŸ“Šβž‘οΈπŸ‘€
  • -N β€” do not allocate more information, only allow the editing of existing values with same size. no growing, only same-size editing πŸ”’
  • -E β€” do not expand the hive file (safe mode). safety first, always 🦺
  • -t β€” print debug information of allocated blocks. nerd mode activated 🧠
  • -v β€” print verbose information and debug messages. extra chatty, extra loud πŸ“’

🌈 EXAMPLES 🌈

samunlock -U -u theboss

Unlock an user named 'theboss', if found. (yes, theboss. the boss of you, specifically πŸ’…)

samunlock -U -u 0x3ea

Unlock an user with RID '0x3a'. πŸ‘€


πŸ’€ KNOWN BUGS πŸ’€

If the username includes international (non-ASCII) characters the program will not (usually) find it. use the RID number instead. it's not a bug, it's a ✨limitation✨ but like. it's a bug. use the RID 🫠


πŸ¦‹ SEE ALSO πŸ¦‹

chntpwd, reged, samusrgrp

You will find more information available on how this program works, in the text files /usr/share/doc/chntpw/README.txt and /usr/share/doc/chntpw/MANUAL.txt πŸ“š

More documentation is available at the non upstream's author site: https://github.com/rescatux/chntpw 🌐


πŸŽ€ AUTHOR πŸŽ€

This program was written by Adrian Gibanel Lopez.

This manual page was written by Adrian Gibanel Lopez <adrian15sgd@gmail.com>, for the Debian GNU/Linux system (but may be used by others). giving credit where credit is due, always 🫢


okay and that's the whole page!! πŸ₯³ written on the 6th December 2017, from the System Manager's Manual, and this is SAMUNLOCK(8) signing off. stay unlocked, bestie πŸ’–πŸ”“βœ¨