[cc]//tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz[/cc]
[cc]tar -xvf ntfs-3g_ntfsprogs-2017.3.23.tgz
cd ntfs-3g_ntfsprogs-2017.3.23
./configure
make
make install[/cc]
[cc]//pkgs.org/download/chntpw
wget //li.nux.ro/download/nux/dextop/el7/x86_64//chntpw-0.99.6-22.110511.el7.nux.x86_64.rpm
yum -y install ./hntpw-0.99.6-22.110511.el7.nux.x86_64.rpm[/cc]
默认第二个分区才是C盘
[cc]mkdir /win
mount -t ntfs-3g /dev/xvdb2 /win[/cc]
cd /win/Windows/System32/config/
[cc]cp SAM{,.bak}[/cc]
[cc]chntpw SAM
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 # 1 清除密码
Password cleared!
Hives that have changed:
# Name
0
Write hive files? (y/n) [n] : y # y保存
0
将Windows系统盘重新挂载回windows中即可
原文来自:
本文地址://lrxjmw.cn/linux-window-skey.html编辑:坑人小妖精,审核员:逄增宝
Linux大全:
Linux系统大全: