← 返回命令列表

Linux command

chntpw 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

List

chntpw -l [path/to/sam_file]

Edit

chntpw -u [username] [path/to/sam_file]

Example

chntpw -i [path/to/sam_file]

说明

chntpw is an offline Windows password and registry editor. It can reset local user passwords, promote users to administrator, unlock accounts, and edit the Windows registry directly. The tool works by modifying the Windows SAM (Security Account Manager) database file while Windows is not running. This is typically done by booting from a Linux live CD.

参数

-l
List users in the SAM file
-u _username_
Select user to edit
-i
Interactive mode with menu
-e
Registry editor mode
-L
Write names of changed files to /tmp/changed

FAQ

What is the chntpw command used for?

chntpw is an offline Windows password and registry editor. It can reset local user passwords, promote users to administrator, unlock accounts, and edit the Windows registry directly. The tool works by modifying the Windows SAM (Security Account Manager) database file while Windows is not running. This is typically done by booting from a Linux live CD.

How do I run a basic chntpw example?

Run `chntpw -l [path/to/sam_file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l do in chntpw?

List users in the SAM file