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 ππβ¨
π¦ where this page comes from
- debian bookworm: chntpw 140201-1
- debian trixie: chntpw 140201-1.2
- ubuntu jammy: chntpw 140201-1
- ubuntu noble: chntpw 140201-1
- ubuntu questing: chntpw 140201-1.2
- ubuntu resolute: chntpw 140201-1.2build1
- ubuntu stonking: chntpw 140201-1.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms