扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
Linux中如何清除Windows密码?本篇文章重点为大家讲解一下Linux中如何Windows密码具体方法。
成都创新互联是一家专注于成都做网站、成都网站设计与策划设计,坡头网站建设哪家好?成都创新互联做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:坡头等地区。坡头做网站价格咨询:13518219792
u=936689560,3272300958&fm=26&gp=0
下载驱动让Linux挂载Windows磁盘
[cc]https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz[/cc]
安装
[cc]tar -xvf ntfs-3g_ntfsprogs-2017.3.23.tgzcd ntfs-3g_ntfsprogs-2017.3.23./configuremakemake install[/cc]
下载chntpw
[cc]https://pkgs.org/download/chntpwwget http://li.nux.ro/download/nux/dextop/el7/x86_64//chntpw-0.99.6-22.110511.el7.nux.x86_64.rpmyum -y install ./hntpw-0.99.6-22.110511.el7.nux.x86_64.rpm[/cc]
挂载windows磁盘
挂载windows的系统盘
默认第二个分区才是C盘[cc]mkdir /winmount -t ntfs-3g /dev/xvdb2 /win[/cc]
备份SAM文件
cd /win/Windows/System32/config/[cc]cp SAM{,.bak}[/cc]
清除Windows密码
[cc]chntpw SAMUser Edit Menu:1 – Clear (blank) user password2 – 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 selectSelect: [q] > 1 # 1 清除密码Password cleared!Hives that have changed:# Name0Write hive files? (y/n) [n] : y # y保存0 – OK[/cc]
将Windows系统盘重新挂载回windows中即可
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流